Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / py-dormakaba-dkey / default.nix
blob405c1e61cad6a927d3bc1c7732e25678569eb7aa
1 { lib
2 , bleak
3 , bleak-retry-connector
4 , buildPythonPackage
5 , cryptography
6 , fetchFromGitHub
7 , fetchpatch
8 , pythonOlder
9 , setuptools
10 , wheel
13 buildPythonPackage rec {
14   pname = "py-dormakaba-dkey";
15   version = "1.0.5";
16   format = "pyproject";
18   disabled = pythonOlder "3.10";
20   src = fetchFromGitHub {
21     owner = "emontnemery";
22     repo = pname;
23     rev = "refs/tags/${version}";
24     hash = "sha256-kS99du9EZwki6J2q+nI44rx/AWIPtq7wXR/61ZcyUSM=";
25   };
27   patches = [
28     # https://github.com/emontnemery/py-dormakaba-dkey/pull/45
29     (fetchpatch {
30       name = "relax-setuptools-dependency.patch";
31       url = "https://github.com/emontnemery/py-dormakaba-dkey/commit/cfda4be71d39f2cfd1c0d4f7fff9018050c57f1a.patch";
32       hash = "sha256-JGsaLQNbUfz0uK/MeGnR2XTJDs4RnTOEg7BavfDPArg=";
33     })
34   ];
36   nativeBuildInputs = [
37     setuptools
38     wheel
39   ];
41   propagatedBuildInputs = [
42     bleak
43     bleak-retry-connector
44     cryptography
45   ];
47   # Module has no tests
48   doCheck = false;
50   pythonImportsCheck = [
51     "py_dormakaba_dkey"
52   ];
54   meta = with lib; {
55     description = "Library to interact with a Dormakaba dkey lock";
56     homepage = "https://github.com/emontnemery/py-dormakaba-dkey";
57     changelog = "https://github.com/emontnemery/py-dormakaba-dkey/releases/tag/${version}";
58     license = licenses.mit;
59     maintainers = with maintainers; [ fab ];
60   };