depot/third_party/nixpkgs/pkgs/development/python-modules/broadlink/default.nix
Default email 8a45d4525b Project import generated by Copybara.
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
2022-03-30 11:31:56 +02:00

37 lines
697 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, cryptography
, pythonOlder
}:
buildPythonPackage rec {
pname = "broadlink";
version = "0.18.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-KMfL1mY4th87gjPrdhvzQjdXucgwSChsykOCO3cPAD8=";
};
propagatedBuildInputs = [
cryptography
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [
"broadlink"
];
meta = with lib; {
description = "Python API for controlling Broadlink IR controllers";
homepage = "https://github.com/mjg59/python-broadlink";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}