diff options
| author | Yang, Bo <pop.atry@gmail.com> | 2023-08-12 14:19:01 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-12 14:19:01 -0700 |
| commit | 1b8ca87a835453b57f2d3ebdc227b75d658c22ef (patch) | |
| tree | 1801aafb80480479bf0f1ec0394f00b70aeabdab /pkgs/development/python-modules/python-ev3dev2 | |
| parent | b51302ed47ad40536050c41f4bf021a0076fe3d0 (diff) | |
| parent | fe53548a11b9dc28f605364ace485f37524027c7 (diff) | |
Merge branch 'master' into stdenv.cc.libcxx
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 ]; + }; +} |
