Files
nixpkgs/pkgs/development/python-modules/python-opendata-transport/default.nix
T
2023-11-20 22:21:57 +01:00

47 lines
977 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 ];
};
}