about summary refs log tree commit diff
path: root/pkgs/development/python-modules/rjpl/default.nix
blob: 439d207aa58dd41edec8a7cc4bfe31220d6a6e68 (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
{
  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 ];
  };
}