Merge pull request #108175 from fabaff/python-opendata-transport

python3Packages.python-opendata-transport: init at 0.2.1
This commit is contained in:
Sandro 2021-01-02 05:14:26 +01:00 committed by GitHub
commit da613094f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 39 additions and 1 deletions

View File

@ -0,0 +1,36 @@
{ lib
, buildPythonPackage
, fetchPypi
, aiohttp
, async-timeout
, urllib3
}:
buildPythonPackage rec {
pname = "python-opendata-transport";
version = "0.2.1";
src = fetchPypi {
pname = "python_opendata_transport";
inherit version;
sha256 = "0pxs9zqk00vn1s74cx1416mqmixrr74wb0jb0j6b1c3xpvzlfbks";
};
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 ];
};
}

View File

@ -796,7 +796,7 @@
"supla" = ps: with ps; [ ]; # missing inputs: asyncpysupla
"surepetcare" = ps: with ps; [ ]; # missing inputs: surepy
"swiss_hydrological_data" = ps: with ps; [ ]; # missing inputs: swisshydrodata
"swiss_public_transport" = ps: with ps; [ ]; # missing inputs: python_opendata_transport
"swiss_public_transport" = ps: with ps; [ python-opendata-transport ];
"swisscom" = ps: with ps; [ ];
"switch" = ps: with ps; [ ];
"switchbot" = ps: with ps; [ ]; # missing inputs: PySwitchbot

View File

@ -6056,6 +6056,8 @@ in {
python-olm = callPackage ../development/python-modules/python-olm { };
python-opendata-transport = callPackage ../development/python-modules/python-opendata-transport { };
python_openzwave = callPackage ../development/python-modules/python_openzwave { inherit (pkgs) pkgconfig; };
python-otr = callPackage ../development/python-modules/python-otr { };