depot/third_party/nixpkgs/pkgs/development/python-modules/pytrafikverket/default.nix
Default email d5f4a57cbf Project import generated by Copybara.
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
2023-08-10 09:59:29 +02:00

42 lines
878 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, aiohttp
, async-timeout
, lxml
, pythonOlder
}:
buildPythonPackage rec {
pname = "pytrafikverket";
version = "0.3.5";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-dBD8CpEiCDhuabUEPzbvhl3WnEcJU9T910VCAI2jDrA=";
};
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 ];
};
}