mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 18:53:17 +00:00
38 lines
692 B
Nix
38 lines
692 B
Nix
|
{ 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 ];
|
||
|
};
|
||
|
}
|