diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2024-01-26 13:45:24 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2024-01-26 13:45:24 +0100 |
commit | a152e583c88c675c3c1c53c50fbcd79e177d7310 (patch) | |
tree | 8033d1753f11545fc041135f14b525d6dd547d33 /pkgs/development | |
parent | 8ef07bd0ea7f22d2bf7e6fa93ba6cdea71c42217 (diff) |
python311Packages.vtjp: init at 0.2.1
A Python wrapper and cli for Västtrafik public API https://github.com/Miicroo/python-vasttrafik
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/vtjp/default.nix | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/vtjp/default.nix b/pkgs/development/python-modules/vtjp/default.nix new file mode 100644 index 0000000000000..4e193ea2eb482 --- /dev/null +++ b/pkgs/development/python-modules/vtjp/default.nix @@ -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; [ ]; + }; +} |