nixpkgs/pkgs/development/python-modules/broadlink/default.nix

29 lines
615 B
Nix
Raw Normal View History

2018-11-02 10:12:07 +00:00
{ lib, fetchPypi, buildPythonPackage
, pyaes, pycrc }:
buildPythonPackage rec {
pname = "broadlink";
version = "0.9";
src = fetchPypi {
inherit pname version;
sha256 = "10dnd859yjh1h6qrxhvkslbsj5fh5g654xsq2yqblkkv3xd711rs";
};
postPatch = ''
substituteInPlace setup.py \
--replace pyaes==1.6.0 pyaes
'';
propagatedBuildInputs = [ pyaes pycrc ];
# no tests available
doCheck = false;
meta = with lib; {
description = "Python API for controlling Broadlink IR controllers";
2019-04-10 14:30:39 +01:00
homepage = https://github.com/mjg59/python-broadlink;
2018-11-02 10:12:07 +00:00
license = licenses.mit;
};
}