diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2020-08-02 03:30:27 +0200 |
---|---|---|
committer | Jon <jonringer@users.noreply.github.com> | 2020-08-03 13:52:39 -0700 |
commit | cd8dcb546a49700fb50b9f910dc048880abb7c2b (patch) | |
tree | df8663321dc1313530896febdfcf0ee466ef09eb /pkgs/development/python-modules | |
parent | 2db9d13de40ba79d8f4790930ffb71db33d321c4 (diff) |
python3Packages.pyHS100: init at 0.3.5.1
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r-- | pkgs/development/python-modules/pyhs100/default.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pyhs100/default.nix b/pkgs/development/python-modules/pyhs100/default.nix new file mode 100644 index 0000000000000..2e6d7164b8bf1 --- /dev/null +++ b/pkgs/development/python-modules/pyhs100/default.nix @@ -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 ]; + }; +} |