2021-01-04 22:03:13 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, ifaddr
|
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pywilight";
|
2021-02-02 15:24:45 +00:00
|
|
|
version = "0.0.68";
|
2021-01-04 22:03:13 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-02 15:24:45 +00:00
|
|
|
sha256 = "1s1xyw5hkfr4rlni1p9z4941pp1740fsg4a3b23a618hv2p1i4ww";
|
2021-01-04 22:03:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
ifaddr
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
# no tests are present
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "pywilight" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python API for WiLight device";
|
|
|
|
homepage = "https://github.com/leofig-rj/pywilight";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|