depot/third_party/nixpkgs/pkgs/development/python-modules/pywilight/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

38 lines
695 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
ifaddr,
requests,
pythonOlder,
}:
buildPythonPackage rec {
pname = "pywilight";
version = "0.0.74";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-patCdQ7qLEfy+RpH9T/Fa8ubI7QF6OmLzFUokZc5syQ=";
};
propagatedBuildInputs = [
ifaddr
requests
];
# Module has no tests
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 ];
};
}