depot/third_party/nixpkgs/pkgs/development/python-modules/pywilight/default.nix
Default email a6d62be0d1 Project import generated by Copybara.
GitOrigin-RevId: ac169ec6371f0d835542db654a65e0f2feb07838
2021-12-26 18:43:05 +01:00

39 lines
695 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, ifaddr
, requests
, pythonOlder
}:
buildPythonPackage rec {
pname = "pywilight";
version = "0.0.73";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-8AYzAePLqCiz/EN6cJShGnrISijBpFHAU/u355f5IjY=";
};
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 ];
};
}