diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-07-17 20:57:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-17 20:57:20 +0200 |
commit | 8caddab42b241d760cc50cdf8b241e853d027f5a (patch) | |
tree | a687f44bd8901f81f75be3967c0299437c45cfb3 /pkgs/development/python-modules | |
parent | a0684cfbd8e55339600f1cddf8e69468cc9c6210 (diff) | |
parent | 8fea010703000387c9092a3e2226897c884fca44 (diff) | |
download | nixpkgs-8caddab42b241d760cc50cdf8b241e853d027f5a.tar nixpkgs-8caddab42b241d760cc50cdf8b241e853d027f5a.tar.gz nixpkgs-8caddab42b241d760cc50cdf8b241e853d027f5a.tar.bz2 nixpkgs-8caddab42b241d760cc50cdf8b241e853d027f5a.tar.lz nixpkgs-8caddab42b241d760cc50cdf8b241e853d027f5a.tar.xz nixpkgs-8caddab42b241d760cc50cdf8b241e853d027f5a.tar.zst nixpkgs-8caddab42b241d760cc50cdf8b241e853d027f5a.zip |
Merge pull request #130274 from angustrau/ev3dev2
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 ]; + }; +} |