2021-02-16 17:04:54 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, aiohttp
|
|
|
|
, async-timeout
|
|
|
|
, lxml
|
2022-04-27 09:35:20 +00:00
|
|
|
, pythonOlder
|
2021-02-16 17:04:54 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytrafikverket";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "0.2.1";
|
2022-04-27 09:35:20 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-02-16 17:04:54 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-10-21 18:38:19 +00:00
|
|
|
hash = "sha256-LBOq1AvJrRmyWIe2w4dQbWvlRAJN6s2/lsJRI2LZK2o=";
|
2021-02-16 17:04:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
async-timeout
|
|
|
|
lxml
|
|
|
|
];
|
|
|
|
|
|
|
|
# Project has no tests
|
|
|
|
doCheck = false;
|
2022-04-27 09:35:20 +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";
|
2021-02-16 17:04:54 +00:00
|
|
|
homepage = "https://github.com/endor-force/pytrafikverket";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|