about summary refs log tree commit diff
path: root/pkgs/development/python-modules/co2signal/default.nix
blob: 726e5736a0eac5fa451f7ae50d90137954e4e1d7 (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
{
  lib,
  buildPythonPackage,
  fetchPypi,
  requests,
}:

buildPythonPackage rec {
  pname = "co2signal";
  version = "0.4.2";
  format = "setuptools";

  src = fetchPypi {
    inherit version;
    pname = "CO2Signal";
    hash = "sha256-8YdYbknLICRrZloGUZuscv5e1LIDZBcCPKZs6EMaNuo=";
  };

  propagatedBuildInputs = [ requests ];
  # Modules has no tests
  doCheck = false;

  pythonImportsCheck = [ "CO2Signal" ];

  meta = with lib; {
    description = "Package to access the CO2 Signal API ";
    homepage = "https://github.com/danielsjf/CO2Signal";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ plabadens ];
  };
}