git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.python-opendata-transport: init at 0.2.1
commitfff0b0c840a2b30e4e74d24c7550fb14d1499f7d authorFabian Affolter <mail@fabian-affolter.ch> dateFri 1 Jan 2021, 23:25 (6 years ago) parentd4a76b1
3 files changed+39−1
pkgs/development/python-modules/python-opendata-transport/default.nix+36 pkgs/servers/home-assistant/component-packages.nix+1−1 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/python-opendata-transport/default.nixnew file+36
@@ -0,0 +1,36 @@
1+{ lib
2+, buildPythonPackage
3+, fetchPypi
4+, aiohttp
5+, async-timeout
6+, urllib3
7+}:
8+
9+buildPythonPackage rec {
10+ pname = "python-opendata-transport";
11+ version = "0.2.1";
12+
13+ src = fetchPypi {
14+ pname = "python_opendata_transport";
15+ inherit version;
16+ sha256 = "0pxs9zqk00vn1s74cx1416mqmixrr74wb0jb0j6b1c3xpvzlfbks";
17+ };
18+
19+ propagatedBuildInputs = [
20+ aiohttp
21+ async-timeout
22+ urllib3
23+ ];
24+
25+ # no tests are present
26+ doCheck = false;
27+
28+ pythonImportsCheck = [ "opendata_transport" ];
29+
30+ meta = with lib; {
31+ description = "Python client for interacting with transport.opendata.ch";
32+ homepage = "https://github.com/home-assistant-ecosystem/python-opendata-transport";
33+ license = with licenses; [ mit ];
34+ maintainers = with maintainers; [ fab ];
35+ };
36+}
pkgs/servers/home-assistant/component-packages.nix+1−1
@@ -796,7 +796,7 @@
796796 "supla" = ps: with ps; [ ]; # missing inputs: asyncpysupla
797797 "surepetcare" = ps: with ps; [ ]; # missing inputs: surepy
798798 "swiss_hydrological_data" = ps: with ps; [ ]; # missing inputs: swisshydrodata
799− "swiss_public_transport" = ps: with ps; [ ]; # missing inputs: python_opendata_transport
799+ "swiss_public_transport" = ps: with ps; [ python-opendata-transport ];
800800 "swisscom" = ps: with ps; [ ];
801801 "switch" = ps: with ps; [ ];
802802 "switchbot" = ps: with ps; [ ]; # missing inputs: PySwitchbot
pkgs/top-level/python-packages.nix+2
@@ -6044,6 +6044,8 @@ in {
60446044
60456045 python-olm = callPackage ../development/python-modules/python-olm { };
60466046
6047+ python-opendata-transport = callPackage ../development/python-modules/python-opendata-transport { };
6048+
60476049 python_openzwave = callPackage ../development/python-modules/python_openzwave { inherit (pkgs) pkgconfig; };
60486050
60496051 python-otr = callPackage ../development/python-modules/python-otr { };