Merge pull request #284011 from fabaff/vtjp
python311Packages.vtjp: init at 0.2.1
This commit is contained in:
commit
37840f1f85
47
pkgs/development/python-modules/vtjp/default.nix
Normal file
47
pkgs/development/python-modules/vtjp/default.nix
Normal file
@ -0,0 +1,47 @@
|
||||
{ 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 = "A Python wrapper and cli for Västtrafik public API";
|
||||
homepage = "https://github.com/Miicroo/python-vasttrafik";
|
||||
changelog = "https://github.com/Miicroo/python-vasttrafik/releases/tag/v${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
@ -5257,7 +5257,8 @@
|
||||
"valve" = ps: with ps; [
|
||||
];
|
||||
"vasttrafik" = ps: with ps; [
|
||||
]; # missing inputs: vtjp
|
||||
vtjp
|
||||
];
|
||||
"velbus" = ps: with ps; [
|
||||
aiohttp-cors
|
||||
aiohttp-fast-url-dispatcher
|
||||
|
@ -15968,6 +15968,8 @@ self: super: with self; {
|
||||
|
||||
vt-py = callPackage ../development/python-modules/vt-py { };
|
||||
|
||||
vtjp = callPackage ../development/python-modules/vtjp { };
|
||||
|
||||
vtk = toPythonModule (pkgs.vtk_9.override {
|
||||
inherit python;
|
||||
enablePython = true;
|
||||
|
Loading…
Reference in New Issue
Block a user