python3Packages.pyHS100: init at 0.3.5.1
This commit is contained in:
parent
2db9d13de4
commit
cd8dcb546a
38
pkgs/development/python-modules/pyhs100/default.nix
Normal file
38
pkgs/development/python-modules/pyhs100/default.nix
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder
|
||||||
|
, click, click-datetime, deprecation
|
||||||
|
, pytest, voluptuous }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "pyHS100";
|
||||||
|
version = "0.3.5.1";
|
||||||
|
disabled = pythonOlder "3.5";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "GadgetReactor";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "1vddr9sjn6337i1vx0mm7pb3qibvl2gx6nx18vm4fajgv9vcjxny";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
click
|
||||||
|
click-datetime
|
||||||
|
deprecation
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytest
|
||||||
|
voluptuous
|
||||||
|
];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
py.test pyHS100
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Python Library to control TPLink Switch (HS100 / HS110)";
|
||||||
|
homepage = "https://github.com/GadgetReactor/pyHS100";
|
||||||
|
license = licenses.gpl3;
|
||||||
|
maintainers = with maintainers; [ hexa ];
|
||||||
|
};
|
||||||
|
}
|
@ -2578,6 +2578,8 @@ in {
|
|||||||
|
|
||||||
pyhcl = callPackage ../development/python-modules/pyhcl { };
|
pyhcl = callPackage ../development/python-modules/pyhcl { };
|
||||||
|
|
||||||
|
pyhs100 = callPackage ../development/python-modules/pyhs100 { };
|
||||||
|
|
||||||
pytest = if isPy3k then self.pytest_5 else self.pytest_4;
|
pytest = if isPy3k then self.pytest_5 else self.pytest_4;
|
||||||
|
|
||||||
pytest_5 = callPackage ../development/python-modules/pytest {
|
pytest_5 = callPackage ../development/python-modules/pytest {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user