depot/third_party/nixpkgs/pkgs/development/python-modules/python-opendata-transport/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

43 lines
974 B
Nix

{
lib,
aiohttp,
buildPythonPackage,
fetchPypi,
pythonOlder,
setuptools,
urllib3,
}:
buildPythonPackage rec {
pname = "python-opendata-transport";
version = "0.4.0";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchPypi {
pname = "python_opendata_transport";
inherit version;
hash = "sha256-2lEKPu5vjyqNUqz1NGmZ5b6YP3oWnCgoubDdiQCbdps=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
aiohttp
urllib3
];
# No tests are present
doCheck = false;
pythonImportsCheck = [ "opendata_transport" ];
meta = with lib; {
description = "Python client for interacting with transport.opendata.ch";
homepage = "https://github.com/home-assistant-ecosystem/python-opendata-transport";
changelog = "https://github.com/home-assistant-ecosystem/python-opendata-transport/releases/tag/${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}