git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #108241 from fabaff/schiene

python3Packages.schiene: init at 0.23

commit4919ccf2ebc77e1320195d58490e07950d227afd authorMartin Weinelt <mweinelt@users.noreply.github.com> dateSat 2 Jan 2021, 19:02 (6 years ago) parent5c936d46406265
3 files changed+36−1
pkgs/development/python-modules/schiene/default.nix+33 pkgs/servers/home-assistant/component-packages.nix+1−1 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/schiene/default.nixnew file+33
@@ -0,0 +1,33 @@
1+{ lib
2+, buildPythonPackage
3+, fetchPypi
4+, requests
5+, beautifulsoup4
6+}:
7+
8+buildPythonPackage rec {
9+ pname = "schiene";
10+ version = "0.23";
11+
12+ src = fetchPypi {
13+ inherit pname version;
14+ sha256 = "014aaxmk7yxyml1xgfk3zqallyb5zi04m0v7jgqjkbjqq4n4j3ck";
15+ };
16+
17+ propagatedBuildInputs = [
18+ requests
19+ beautifulsoup4
20+ ];
21+
22+ # tests are not present
23+ doCheck = false;
24+
25+ pythonImportsCheck = [ "schiene" ];
26+
27+ meta = with lib; {
28+ description = "Python library for interacting with Bahn.de";
29+ homepage = "https://github.com/kennell/schiene";
30+ license = with licenses; [ mit ];
31+ maintainers = with maintainers; [ fab ];
32+ };
33+}
pkgs/servers/home-assistant/component-packages.nix+1−1
@@ -161,7 +161,7 @@
161161 "denon" = ps: with ps; [ ];
162162 "denonavr" = ps: with ps; [ denonavr getmac ];
163163 "derivative" = ps: with ps; [ ];
164− "deutsche_bahn" = ps: with ps; [ ]; # missing inputs: schiene
164+ "deutsche_bahn" = ps: with ps; [ schiene ];
165165 "device_automation" = ps: with ps; [ ];
166166 "device_sun_light_trigger" = ps: with ps; [ aiohttp-cors pillow ];
167167 "device_tracker" = ps: with ps; [ ];
pkgs/top-level/python-packages.nix+2
@@ -6636,6 +6636,8 @@ in {
66366636
66376637 schema = callPackage ../development/python-modules/schema { };
66386638
6639+ schiene = callPackage ../development/python-modules/schiene { };
6640+
66396641 scikit-bio = callPackage ../development/python-modules/scikit-bio { };
66406642
66416643 scikit-build = callPackage ../development/python-modules/scikit-build { };