diff options
author | Angus Trau <me@angus.ws> | 2021-07-15 23:24:04 +1000 |
---|---|---|
committer | Angus Trau <me@angus.ws> | 2021-07-16 18:07:21 +1000 |
commit | 8fea010703000387c9092a3e2226897c884fca44 (patch) | |
tree | f3d185a68f21841fe53e8747b3373b94f77d6774 | |
parent | 7c9470a0612d0e8f4988206794d1e66f1c6bf680 (diff) | |
download | nixpkgs-8fea010703000387c9092a3e2226897c884fca44.tar nixpkgs-8fea010703000387c9092a3e2226897c884fca44.tar.gz nixpkgs-8fea010703000387c9092a3e2226897c884fca44.tar.bz2 nixpkgs-8fea010703000387c9092a3e2226897c884fca44.tar.lz nixpkgs-8fea010703000387c9092a3e2226897c884fca44.tar.xz nixpkgs-8fea010703000387c9092a3e2226897c884fca44.tar.zst nixpkgs-8fea010703000387c9092a3e2226897c884fca44.zip |
python3Packages.ev3dev2: init at 2.1.0
-rw-r--r-- | pkgs/development/python-modules/ev3dev2/default.nix | 37 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/ev3dev2/default.nix b/pkgs/development/python-modules/ev3dev2/default.nix new file mode 100644 index 00000000000..f6233db68db --- /dev/null +++ b/pkgs/development/python-modules/ev3dev2/default.nix @@ -0,0 +1,37 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, python +, pillow +}: + +buildPythonPackage rec { + pname = "ev3dev2"; + version = "2.1.0"; + + src = fetchFromGitHub { + owner = "ev3dev"; + repo = "ev3dev-lang-python"; + rev = version; + sha256 = "XxsiQs3k5xKb+3RewARbvBbxaztdvdq3w5ZMgTq+kRc="; + fetchSubmodules = true; + }; + + postPatch = '' + echo "${version}\n" > 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; [ angustrau ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index abf8dc2ee80..5896c39adc6 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2355,6 +2355,8 @@ in { et_xmlfile = callPackage ../development/python-modules/et_xmlfile { }; + ev3dev2 = callPackage ../development/python-modules/ev3dev2 { }; + evdev = callPackage ../development/python-modules/evdev { }; eve = callPackage ../development/python-modules/eve { }; |