1{ lib
2, bleak
3, bleak-retry-connector
4, buildPythonPackage
5, cryptography
6, fetchFromGitHub
7, pythonOlder
8, setuptools
9}:
10
11buildPythonPackage rec {
12 pname = "py-dormakaba-dkey";
13 version = "1.0.4";
14 format = "pyproject";
15
16 disabled = pythonOlder "3.10";
17
18 src = fetchFromGitHub {
19 owner = "emontnemery";
20 repo = pname;
21 rev = "refs/tags/${version}";
22 hash = "sha256-1jIsKQa27XNVievU02jjanRWFtJDYsHolgPBab6qpM0=";
23 };
24
25 nativeBuildInputs = [
26 setuptools
27 ];
28
29 propagatedBuildInputs = [
30 bleak
31 bleak-retry-connector
32 cryptography
33 ];
34
35 # Module has no tests
36 doCheck = false;
37
38 pythonImportsCheck = [
39 "py_dormakaba_dkey"
40 ];
41
42 meta = with lib; {
43 description = "Library to interact with a Dormakaba dkey lock";
44 homepage = "https://github.com/emontnemery/py-dormakaba-dkey";
45 changelog = "https://github.com/emontnemery/py-dormakaba-dkey/releases/tag/${version}";
46 license = licenses.mit;
47 maintainers = with maintainers; [ fab ];
48 };
49}