nixpkgs/pkgs/development/python-modules/broadlink/default.nix
2021-03-12 22:47:40 +00:00

29 lines
659 B
Nix

{ lib, fetchPypi, buildPythonPackage
, cryptography, pyaes, pycrc }:
buildPythonPackage rec {
pname = "broadlink";
version = "0.17.0";
src = fetchPypi {
inherit pname version;
sha256 = "bfd1ff007d0d1187c17ae52be938afc8137fbd1ed6a794426e975df10d167571";
};
postPatch = ''
substituteInPlace setup.py \
--replace pyaes==1.6.0 pyaes
'';
propagatedBuildInputs = [ cryptography pyaes pycrc ];
# no tests available
doCheck = false;
meta = with lib; {
description = "Python API for controlling Broadlink IR controllers";
homepage = "https://github.com/mjg59/python-broadlink";
license = licenses.mit;
};
}