depot/third_party/nixpkgs/pkgs/development/python-modules/pyhs100/default.nix
Default email 0eaa97ffad Project import generated by Copybara.
GitOrigin-RevId: c59ea8b8a0e7f927e7291c14ea6cd1bd3a16ff38
2020-08-20 19:08:02 +02:00

38 lines
800 B
Nix

{ 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 ];
};
}