94427deb9d
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
42 lines
878 B
Nix
42 lines
878 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, aiohttp
|
|
, async-timeout
|
|
, lxml
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytrafikverket";
|
|
version = "0.3.3";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-Lq6YAYScBYRA2ltv+ohWfMasqohCH5zrnCi+sQbQWLI=";
|
|
};
|
|
|
|
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";
|
|
changelog = "https://github.com/endor-force/pytrafikverket/releases/tag/${version}";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|