Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 43 lines 862 B view raw
1{ lib 2, buildPythonPackage 3, cryptography 4, fetchFromGitHub 5, pytest-asyncio 6, pytest-sugar 7, pytest-timeout 8, pytestCheckHook 9, pythonOlder 10}: 11 12buildPythonPackage rec { 13 pname = "pylutron-caseta"; 14 version = "0.9.0"; 15 disabled = pythonOlder "3.5"; 16 17 src = fetchFromGitHub { 18 owner = "gurumitts"; 19 repo = pname; 20 rev = "v${version}"; 21 sha256 = "07mz4hn0455qmfqs4xcqlhbf3qvrnmifd0vzpcqlqaqcn009iahq"; 22 }; 23 24 propagatedBuildInputs = [ 25 cryptography 26 ]; 27 28 checkInputs = [ 29 pytest-asyncio 30 pytest-sugar 31 pytest-timeout 32 pytestCheckHook 33 ]; 34 35 pythonImportsCheck = [ "pylutron_caseta" ]; 36 37 meta = with lib; { 38 description = "Python module o control Lutron Caseta devices"; 39 homepage = "https://github.com/gurumitts/pylutron-caseta"; 40 license = with licenses; [ asl20 ]; 41 maintainers = with maintainers; [ fab ]; 42 }; 43}