2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
urllib3,
|
2021-01-05 17:05:55 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-opendata-transport";
|
2024-10-04 16:56:33 +00:00
|
|
|
version = "0.5.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
pyproject = true;
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
disabled = pythonOlder "3.11";
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "python_opendata_transport";
|
|
|
|
inherit version;
|
2024-10-04 16:56:33 +00:00
|
|
|
hash = "sha256-CtYsks7Q33ww0Mr9ehhq7+fJhCsj4gxKytiCZ6G4Aqc=";
|
2021-01-05 17:05:55 +00:00
|
|
|
};
|
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
dependencies = [
|
2021-01-05 17:05:55 +00:00
|
|
|
aiohttp
|
|
|
|
urllib3
|
|
|
|
];
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
# No tests are present
|
2021-01-05 17:05:55 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "opendata_transport" ];
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python client for interacting with transport.opendata.ch";
|
|
|
|
homepage = "https://github.com/home-assistant-ecosystem/python-opendata-transport";
|
2024-01-02 11:29:13 +00:00
|
|
|
changelog = "https://github.com/home-assistant-ecosystem/python-opendata-transport/releases/tag/${version}";
|
2024-10-04 16:56:33 +00:00
|
|
|
license = licenses.mit;
|
2021-01-05 17:05:55 +00:00
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|