1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 requests,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "sanix";
12 version = "1.0.6";
13 pyproject = true;
14
15 disabled = pythonOlder "3.10";
16
17 src = fetchFromGitHub {
18 owner = "tomaszsluszniak";
19 repo = "sanix_py";
20 rev = "refs/tags/v${version}";
21 hash = "sha256-D2w3hmL8ym63liWOYdZS4ry3lJ0utbbYGagWoOTT1TQ=";
22 };
23
24 build-system = [ setuptools ];
25
26 dependencies = [ requests ];
27
28 # Module has no tests
29 doCheck = false;
30
31 pythonImportsCheck = [ "sanix" ];
32
33 meta = with lib; {
34 description = "Module to get measurements data from Sanix devices";
35 homepage = "https://github.com/tomaszsluszniak/sanix_py";
36 license = licenses.mit;
37 maintainers = with maintainers; [ fab ];
38 };
39}