depot/third_party/nixpkgs/pkgs/development/python-modules/py-air-control/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

38 lines
768 B
Nix

{
buildPythonPackage,
coapthon3,
fetchFromGitHub,
isPy27,
lib,
pycryptodomex,
}:
buildPythonPackage rec {
pname = "py-air-control";
version = "2.1.0";
format = "setuptools";
disabled = isPy27;
src = fetchFromGitHub {
owner = "rgerganov";
repo = pname;
rev = "v${version}";
sha256 = "0mkggl5hwmj90djxbbz4svim6iv7xl8k324cb4rlc75p5rgcdwmh";
};
propagatedBuildInputs = [
pycryptodomex
coapthon3
];
# tests sometimes hang forever on tear-down
doCheck = false;
pythonImportsCheck = [ "pyairctrl" ];
meta = with lib; {
inherit (src.meta) homepage;
description = "Command Line App for Controlling Philips Air Purifiers";
license = licenses.mit;
maintainers = with maintainers; [ urbas ];
};
}