about summary refs log tree commit diff
path: root/pkgs/development/python-modules/epion/default.nix
blob: f286e67ba2670e8edb4ef6d2f44aa4d982581589 (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
43
44
45
46
47
48
49
{ lib
, buildPythonPackage
, docopt
, fetchFromGitHub
, pythonOlder
, pytz
, requests
, setuptools
}:

buildPythonPackage rec {
  pname = "epion";
  version = "0.0.1";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "devenzo-com";
    repo = "epion_python";
    # https://github.com/devenzo-com/epion_python/issues/1
    rev = "d8759951fc7bfd1507abe725b2bc98754cbbf505";
    hash = "sha256-uC227rlu4NB5lpca02QLi2JZ5SKklLfv7rXvvJA1aCA=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  propagatedBuildInputs = [
    docopt
    pytz
    requests
  ];

  # Module has no tests
  doCheck = false;

  pythonImportsCheck = [
    "epion"
  ];

  meta = with lib; {
    description = "Module to access Epion sensor data";
    homepage = "https://github.com/devenzo-com/epion_python";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
  };
}