depot/third_party/nixpkgs/pkgs/development/python-modules/pytrafikverket/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

44 lines
918 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
aiohttp,
aiozoneinfo,
lxml,
pythonOlder,
poetry-core,
}:
buildPythonPackage rec {
pname = "pytrafikverket";
version = "1.0.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-qvJbAE5C19RSg5p823sCJ/dWIHBSD4kJrw/p8PF2HkI=";
};
build-system = [ poetry-core ];
dependencies = [
aiohttp
aiozoneinfo
lxml
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "pytrafikverket" ];
meta = with lib; {
description = "Library to get data from the Swedish Transport Administration (Trafikverket) API";
homepage = "https://github.com/gjohansson-ST/pytrafikverket";
changelog = "https://github.com/gjohansson-ST/pytrafikverket/releases/tag/v${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}