git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #108175 from fabaff/python-opendata-transport

python3Packages.python-opendata-transport: init at 0.2.1

commitda613094f76df071b255d456eb6a124edeba2ce9 authorSandro <sandro.jaeckel@gmail.com> dateSat 2 Jan 2021, 05:14 (6 years ago) parent0d0c68efff0b0c
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
@@ -6056,6 +6056,8 @@ in {
60566056
60576057 python-olm = callPackage ../development/python-modules/python-olm { };
60586058
6059+ python-opendata-transport = callPackage ../development/python-modules/python-opendata-transport { };
6060+
60596061 python_openzwave = callPackage ../development/python-modules/python_openzwave { inherit (pkgs) pkgconfig; };
60606062
60616063 python-otr = callPackage ../development/python-modules/python-otr { };