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

29 lines
659 B
Nix
Raw Normal View History

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