1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, poetry-core 5, pynacl 6, pythonOlder 7, requests 8}: 9 10buildPythonPackage rec { 11 pname = "pynuki"; 12 version = "1.6.0"; 13 format = "pyproject"; 14 15 disabled = pythonOlder "3.8"; 16 17 src = fetchFromGitHub { 18 owner = "pschmitt"; 19 repo = pname; 20 rev = version; 21 hash = "sha256-9WiPApesocE9wXyI/qH+TTfbsTgJTyifSW3tfNro7XI="; 22 }; 23 24 nativeBuildInputs = [ 25 poetry-core 26 ]; 27 28 propagatedBuildInputs = [ 29 pynacl 30 requests 31 ]; 32 33 # Project has no tests 34 doCheck = false; 35 36 pythonImportsCheck = [ 37 "pynuki" 38 ]; 39 40 meta = with lib; { 41 description = "Python bindings for nuki.io bridges"; 42 homepage = "https://github.com/pschmitt/pynuki"; 43 license = with licenses; [ gpl3Only ]; 44 maintainers = with maintainers; [ fab ]; 45 }; 46}