diff options
| author | Martin Weinelt <mweinelt@users.noreply.github.com> | 2023-06-19 06:48:53 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-19 06:48:53 +0200 |
| commit | d50f95c6e2a8f58a9e883d918d1e184a6b512900 (patch) | |
| tree | 63cf1649e2fb95eed11c371054db35f70bb28f73 /pkgs/development/python-modules/python-ev3dev2 | |
| parent | f6054413cfd771aa9c71c67a89b5a9c9daa08a3b (diff) | |
| parent | cd7cf98d5d90c54dc1a2489c134441ade0a41d9a (diff) | |
Merge pull request #237935 from emilytrau/ev3dev2-build
python3Packages.ev3dev2: fix build failure
Diffstat (limited to 'pkgs/development/python-modules/python-ev3dev2')
| -rw-r--r-- | pkgs/development/python-modules/python-ev3dev2/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/python-ev3dev2/default.nix b/pkgs/development/python-modules/python-ev3dev2/default.nix new file mode 100644 index 000000000000..b5fc2e4fe537 --- /dev/null +++ b/pkgs/development/python-modules/python-ev3dev2/default.nix @@ -0,0 +1,37 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, python +, pillow +}: + +buildPythonPackage rec { + pname = "python-ev3dev2"; + version = "2.1.0"; + + src = fetchFromGitHub { + owner = "ev3dev"; + repo = "ev3dev-lang-python"; + rev = version; + sha256 = "XxsiQs3k5xKb+3RewARbvBbxaztdvdq3w5ZMgTq+kRc="; + fetchSubmodules = true; + }; + + postPatch = '' + echo "${version}" > RELEASE-VERSION + ''; + + propagatedBuildInputs = [ pillow ]; + + checkPhase = '' + chmod -R g+rw ./tests/fake-sys/devices/**/* + ${python.interpreter} -W ignore::ResourceWarning tests/api_tests.py + ''; + + meta = with lib; { + description = "Python language bindings for ev3dev"; + homepage = "https://github.com/ev3dev/ev3dev-lang-python"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ emilytrau ]; + }; +} |
