Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 32 lines 594 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, cryptography 5}: 6 7buildPythonPackage rec { 8 pname = "broadlink"; 9 version = "0.17.0"; 10 11 src = fetchPypi { 12 inherit pname version; 13 sha256 = "bfd1ff007d0d1187c17ae52be938afc8137fbd1ed6a794426e975df10d167571"; 14 }; 15 16 propagatedBuildInputs = [ 17 cryptography 18 ]; 19 20 # no tests available 21 doCheck = false; 22 23 pythonImportsCheck = [ 24 "broadlink" 25 ]; 26 27 meta = with lib; { 28 description = "Python API for controlling Broadlink IR controllers"; 29 homepage = "https://github.com/mjg59/python-broadlink"; 30 license = licenses.mit; 31 }; 32}