mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
python3Packages.ev3dev2: init at 2.1.0
This commit is contained in:
parent
7c9470a061
commit
8fea010703
37
pkgs/development/python-modules/ev3dev2/default.nix
Normal file
37
pkgs/development/python-modules/ev3dev2/default.nix
Normal file
@ -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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user