depot/third_party/nixpkgs/pkgs/development/python-modules/pytrafikverket/default.nix

46 lines
898 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, aiohttp
, lxml
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "pytrafikverket";
version = "0.3.10";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-B3K9wDFj7uSgs6BsJUnD6r2JVcH7u7UrbVXUTMGqmQE=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
aiohttp
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 ];
};
}