Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add evdev Python package recipe #26163

Merged
merged 13 commits into from
May 29, 2024
52 changes: 52 additions & 0 deletions recipes/evdev/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{% set name = "evdev" %}
{% set version = "1.7.1" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/evdev-{{ version }}.tar.gz
sha256: 0c72c370bda29d857e188d931019c32651a9c1ea977c08c8d939b1ced1637fde

build:
skip: true # [not linux]
script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation
script_env:
- "C_INCLUDE_PATH=${BUILD_PREFIX}/x86_64-conda-linux-gnu/sysroot/usr/include" # [linux64]
- "C_INCLUDE_PATH=${BUILD_PREFIX}/aarch64-conda-linux-gnu/sysroot/usr/include" # [aarch64]
- "C_INCLUDE_PATH=${BUILD_PREFIX}/powerpc64le-conda-linux-gnu/sysroot/usr/include" # [ppc64le]
- "C_INCLUDE_PATH=${BUILD_PREFIX}/s390x-conda-linux-gnu/sysroot/usr/include" # [s390x]
ehfd marked this conversation as resolved.
Show resolved Hide resolved
number: 0

requirements:
build:
- {{ stdlib('c') }}
- {{ compiler('c') }}
- python # [build_platform != target_platform]
- cross-python_{{ target_platform }} # [build_platform != target_platform]
host:
- python
- setuptools >=61.0
- pip
run:
- python

test:
imports:
- evdev
commands:
- pip check
requires:
- pip

about:
home: https://github.com/gvalkov/python-evdev
summary: Bindings to the Linux input handling subsystem
doc_url: https://python-evdev.readthedocs.io
license: BSD-3-Clause
license_file: LICENSE

extra:
recipe-maintainers:
- ehfd