about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyatome/default.nix
blob: 2022260d4817049504a74ed58998e6af12205f4f (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
{ lib
, buildPythonPackage
, fetchPypi
, requests
, simplejson
, fake-useragent
, pythonOlder
}:

buildPythonPackage rec {
  pname = "pyatome";
  version = "0.1.2";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    pname = "pyAtome";
    inherit version;
    hash = "sha256-DGkgW6emh/esZa/alUjBbpLXlU4EVIPkysn9a0LgcJ4=";
  };

  propagatedBuildInputs = [
    requests
    simplejson
    fake-useragent
  ];

  # No tests in PyPI tarballs
  doCheck = false;

  pythonImportsCheck = [
    "pyatome"
  ];

  meta = with lib; {
    description = "Python module to get energy consumption data from Atome";
    mainProgram = "pyatome";
    homepage = "https://github.com/baqs/pyAtome";
    license = licenses.asl20;
    maintainers = with maintainers; [ uvnikita ];
  };
}