3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/broadlink/default.nix
2020-04-10 17:54:53 +01:00

29 lines
659 B
Nix

{ lib, fetchPypi, buildPythonPackage
, cryptography, pyaes, pycrc }:
buildPythonPackage rec {
pname = "broadlink";
version = "0.12.0";
src = fetchPypi {
inherit pname version;
sha256 = "6448327f8f1cd0c103971a724a3e60629ccb5e8c302e7fdcbde6464e8edef2d8";
};
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;
};
}