22017988c6
GitOrigin-RevId: c777cdf5c564015d5f63b09cc93bef4178b19b01
41 lines
791 B
Nix
41 lines
791 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, aiohttp
|
|
, async-timeout
|
|
, lxml
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytrafikverket";
|
|
version = "0.2.0.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-RsB8b96aCIBM3aABOuuexB5fIo7H1Kq/XsGvV8b7/sA=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
async-timeout
|
|
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/endor-force/pytrafikverket";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|