anki-bin: 24.06.3 -> 24.11 (#360722)
[NixPkgs.git] / pkgs / development / python-modules / miauth / default.nix
blobaec9084ed77311e5259db96858405270183e5930
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   pythonOlder,
7   # build-system
8   setuptools,
10   # dependencies
11   bluepy,
12   cryptography,
14   # checks
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   build-system = [ setuptools ];
32   pythonRelaxDeps = [ "cryptography" ];
34   dependencies = [
35     bluepy
36     cryptography
37   ];
39   nativeCheckInputs = [ pytestCheckHook ];
41   pythonImportsCheck = [ "miauth" ];
43   meta = with lib; {
44     description = "Authenticate and interact with Xiaomi devices over BLE";
45     homepage = "https://github.com/dnandha/miauth";
46     license = licenses.agpl3Only;
47     maintainers = with maintainers; [ fab ];
48     mainProgram = "miauth";
49   };