2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
aiohttp,
|
2024-09-19 14:19:46 +00:00
|
|
|
aiozoneinfo,
|
2024-06-05 15:53:02 +00:00
|
|
|
lxml,
|
|
|
|
pythonOlder,
|
2024-09-19 14:19:46 +00:00
|
|
|
poetry-core,
|
2021-02-16 17:04:54 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytrafikverket";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.0.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
pyproject = true;
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-02-16 17:04:54 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-qvJbAE5C19RSg5p823sCJ/dWIHBSD4kJrw/p8PF2HkI=";
|
2021-02-16 17:04:54 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ poetry-core ];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
dependencies = [
|
2021-02-16 17:04:54 +00:00
|
|
|
aiohttp
|
2024-09-19 14:19:46 +00:00
|
|
|
aiozoneinfo
|
2021-02-16 17:04:54 +00:00
|
|
|
lxml
|
|
|
|
];
|
|
|
|
|
|
|
|
# Project has no tests
|
|
|
|
doCheck = false;
|
2022-04-27 09:35:20 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "pytrafikverket" ];
|
2021-02-16 17:04:54 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-04-27 09:35:20 +00:00
|
|
|
description = "Library to get data from the Swedish Transport Administration (Trafikverket) API";
|
2024-09-19 14:19:46 +00:00
|
|
|
homepage = "https://github.com/gjohansson-ST/pytrafikverket";
|
|
|
|
changelog = "https://github.com/gjohansson-ST/pytrafikverket/releases/tag/v${version}";
|
2021-02-16 17:04:54 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|