Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / miauth / default.nix
blobc28c5ed96a77a296c1445e47623abd7832beaded
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pythonOlder
5 , pythonRelaxDepsHook
7 # build-system
8 , setuptools
10 # dependencies
11 , bluepy
12 , cryptography
14 # tests
15 , pytestCheckHook
18 buildPythonPackage rec {
19   pname = "miauth";
20   version = "0.9.7";
21   pyproject = true;
23   disabled = pythonOlder "3.10";
25   src = fetchPypi {
26     inherit pname version;
27     hash = "sha256-2/4nFInpdY8fb/b+sXhgT6ZPtEgBV+KHMyLnxIp6y/U=";
28   };
30   nativeBuildInputs = [
31     setuptools
32     pythonRelaxDepsHook
33   ];
35   pythonRelaxDeps = [
36     "cryptography"
37   ];
39   propagatedBuildInputs = [
40     bluepy
41     cryptography
42   ];
44   nativeCheckInputs = [
45     pytestCheckHook
46   ];
48   pythonImportsCheck = [
49     "miauth"
50   ];
52   meta = with lib; {
53     description = "Authenticate and interact with Xiaomi devices over BLE";
54     mainProgram = "miauth";
55     homepage = "https://github.com/dnandha/miauth";
56     license = licenses.agpl3Only;
57     maintainers = with maintainers; [ fab ];
58   };