Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, cryptography 4, fetchPypi 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "aiobroadlink"; 10 version = "0.1.3"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.8"; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-uTUtDhL9VtWZE+Y6ZJY4prmlE+Yh2UrCg5+eSyAQzMk="; 18 }; 19 20 propagatedBuildInputs = [ 21 cryptography 22 ]; 23 24 # Project has no tests 25 doCheck = false; 26 27 pythonImportsCheck = [ 28 "aiobroadlink" 29 ]; 30 31 meta = with lib; { 32 description = "Python module to control various Broadlink devices"; 33 homepage = "https://github.com/frawau/aiobroadlink"; 34 license = with licenses; [ mit ]; 35 maintainers = with maintainers; [ fab ]; 36 }; 37}