1{ 2 lib, 3 bleak, 4 bleak-retry-connector, 5 buildPythonPackage, 6 cryptography, 7 fetchFromGitHub, 8 fetchpatch, 9 pythonOlder, 10 setuptools, 11 wheel, 12}: 13 14buildPythonPackage rec { 15 pname = "py-dormakaba-dkey"; 16 version = "1.0.6"; 17 format = "pyproject"; 18 19 disabled = pythonOlder "3.10"; 20 21 src = fetchFromGitHub { 22 owner = "emontnemery"; 23 repo = "py-dormakaba-dkey"; 24 tag = version; 25 hash = "sha256-WAptkdMXZN3IKjXGBiILN4gJWdVEndfGndc6J2R2cD0="; 26 }; 27 28 patches = [ 29 # https://github.com/emontnemery/py-dormakaba-dkey/pull/45 30 (fetchpatch { 31 name = "relax-setuptools-dependency.patch"; 32 url = "https://github.com/emontnemery/py-dormakaba-dkey/commit/cfda4be71d39f2cfd1c0d4f7fff9018050c57f1a.patch"; 33 hash = "sha256-JGsaLQNbUfz0uK/MeGnR2XTJDs4RnTOEg7BavfDPArg="; 34 }) 35 ]; 36 37 nativeBuildInputs = [ 38 setuptools 39 wheel 40 ]; 41 42 propagatedBuildInputs = [ 43 bleak 44 bleak-retry-connector 45 cryptography 46 ]; 47 48 # Module has no tests 49 doCheck = false; 50 51 pythonImportsCheck = [ "py_dormakaba_dkey" ]; 52 53 meta = with lib; { 54 description = "Library to interact with a Dormakaba dkey lock"; 55 homepage = "https://github.com/emontnemery/py-dormakaba-dkey"; 56 changelog = "https://github.com/emontnemery/py-dormakaba-dkey/releases/tag/${src.tag}"; 57 license = licenses.mit; 58 maintainers = with maintainers; [ fab ]; 59 }; 60}