2021-01-01 22:25:57 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, aiohttp
|
|
|
|
, async-timeout
|
|
|
|
, urllib3
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-opendata-transport";
|
2021-03-20 21:22:16 +00:00
|
|
|
version = "0.2.2";
|
2021-01-01 22:25:57 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "python_opendata_transport";
|
|
|
|
inherit version;
|
2021-03-20 21:22:16 +00:00
|
|
|
sha256 = "sha256-Z0VHkKYHpwbBwwFrMtA5JRy0m7f0566IjCmGizoKEoo=";
|
2021-01-01 22:25:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
async-timeout
|
|
|
|
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";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|