blob: 76661675f68184fb0b4c51382f42175c909818a0 (
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
44
45
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
requests,
setuptools,
tabulate,
}:
buildPythonPackage rec {
pname = "vtjp";
version = "0.2.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Miicroo";
repo = "python-vasttrafik";
rev = "refs/tags/v${version}";
hash = "sha256-3/toHY2PkG87J5bIMNJZHF/4mUvWaeHamMzPa1St7Xo=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
requests
tabulate
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [ "vasttrafik" ];
meta = with lib; {
description = "Python wrapper and cli for Västtrafik public API";
mainProgram = "vtjp";
homepage = "https://github.com/Miicroo/python-vasttrafik";
changelog = "https://github.com/Miicroo/python-vasttrafik/releases/tag/v${version}";
license = licenses.mit;
maintainers = [ ];
};
}
|