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 /pkgs/development/python-modules | |
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
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r-- | pkgs/development/python-modules/ev3dev2/default.nix | 37 |
1 files changed, 37 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 ]; + }; +} |