about summary refs log tree commit diff
path: root/pkgs/development/python-modules/sanix/default.nix
blob: 64fd15074556b7153fb668f188a662ac853e7361 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, requests
, setuptools
}:

buildPythonPackage rec {
  pname = "sanix";
  version = "1.0.6";
  pyproject = true;

  disabled = pythonOlder "3.10";

  src = fetchFromGitHub {
    owner = "tomaszsluszniak";
    repo = "sanix_py";
    rev = "refs/tags/v${version}";
    hash = "sha256-D2w3hmL8ym63liWOYdZS4ry3lJ0utbbYGagWoOTT1TQ=";
  };

  build-system = [
    setuptools
  ];

  dependencies = [
    requests
  ];

  # Module has no tests
  doCheck = false;

  pythonImportsCheck = [ "sanix" ];

  meta = with lib; {
    description = "Module to get measurements data from Sanix devices";
    homepage = "https://github.com/tomaszsluszniak/sanix_py";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
  };
}