depot/third_party/nixpkgs/pkgs/development/python-modules/python-opendata-transport/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

43 lines
951 B
Nix

{
lib,
aiohttp,
buildPythonPackage,
fetchPypi,
pythonOlder,
setuptools,
urllib3,
}:
buildPythonPackage rec {
pname = "python-opendata-transport";
version = "0.5.0";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchPypi {
pname = "python_opendata_transport";
inherit version;
hash = "sha256-CtYsks7Q33ww0Mr9ehhq7+fJhCsj4gxKytiCZ6G4Aqc=";
};
build-system = [ setuptools ];
dependencies = [
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 = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}