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

buildPythonPackage rec {
  pname = "rjpl";
  version = "0.3.6";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-GLNIpZuM3yuCnPyjBa8KjdaL5cFK8InluuY+LTCrimc=";
  };

  propagatedBuildInputs = [
    requests
  ];

  # Module has no tests
  doCheck = false;

  pythonImportsCheck = [
    "rjpl"
  ];

  meta = with lib; {
    description = "Library for interacting with the Rejseplanen API";
    homepage = "https://github.com/tomatpasser/python-rejseplanen";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };
}