git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #127539 from fabaff/enturclient
commit94a1806bc9a0d7ddbe872ffac65d74f2b48b6b93 authorSandro <sandro.jaeckel@gmail.com> dateSun 20 Jun 2021, 18:18 (5 years ago) parent67c41329c69513
3 files changed+40−1
pkgs/development/python-modules/enturclient/default.nix+37 pkgs/servers/home-assistant/component-packages.nix+1−1 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/enturclient/default.nixnew file+37
@@ -0,0 +1,37 @@
1+{ lib
2+, aiohttp
3+, async-timeout
4+, buildPythonPackage
5+, fetchFromGitHub
6+, pythonOlder
7+}:
8+
9+buildPythonPackage rec {
10+ pname = "enturclient";
11+ version = "0.2.1";
12+ disabled = pythonOlder "3.7";
13+
14+ src = fetchFromGitHub {
15+ owner = "hfurubotten";
16+ repo = pname;
17+ rev = "v${version}";
18+ sha256 = "158xzv9c2drjgrdhfqm0xzx2d34v45gr5rnjfsi94scffvprgwrg";
19+ };
20+
21+ propagatedBuildInputs = [
22+ aiohttp
23+ async-timeout
24+ ];
25+
26+ # Project has no tests
27+ doCheck = false;
28+
29+ pythonImportsCheck = [ "enturclient" ];
30+
31+ meta = with lib; {
32+ description = "Python library for interacting with the Entur.org API";
33+ homepage = "https://github.com/hfurubotten/enturclient";
34+ license = with licenses; [ mit ];
35+ maintainers = with maintainers; [ fab ];
36+ };
37+}
pkgs/servers/home-assistant/component-packages.nix+1−1
@@ -227,7 +227,7 @@
227227 "enigma2" = ps: with ps; [ openwebifpy ];
228228 "enocean" = ps: with ps; [ enocean ];
229229 "enphase_envoy" = ps: with ps; [ envoy-reader ];
230− "entur_public_transport" = ps: with ps; [ ]; # missing inputs: enturclient
230+ "entur_public_transport" = ps: with ps; [ enturclient ];
231231 "environment_canada" = ps: with ps; [ ]; # missing inputs: env_canada
232232 "envirophat" = ps: with ps; [ smbus-cffi ]; # missing inputs: envirophat
233233 "envisalink" = ps: with ps; [ pyenvisalink ];
pkgs/top-level/python-packages.nix+2
@@ -2287,6 +2287,8 @@ in {
22872287
22882288 entrypoints = callPackage ../development/python-modules/entrypoints { };
22892289
2290+ enturclient = callPackage ../development/python-modules/enturclient { };
2291+
22902292 enum34 = callPackage ../development/python-modules/enum34 { };
22912293
22922294 enum-compat = callPackage ../development/python-modules/enum-compat { };