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

python3Packages.nsapi: init at 3.0.5

commit2a006da3fbab006e225c262729121b3d07c5ab88 authorFabian Affolter <fabian@affolter-engineering.ch> dateSun 13 Jun 2021, 11:00 (5 years ago) parent181d76469e2551
3 files changed+40−1
pkgs/development/python-modules/nsapi/default.nix+37 pkgs/servers/home-assistant/component-packages.nix+1−1 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/nsapi/default.nixnew file+37
@@ -0,0 +1,37 @@
1+{ lib
2+, buildPythonPackage
3+, fetchFromGitHub
4+, future
5+, pythonOlder
6+, pytz
7+}:
8+
9+buildPythonPackage rec {
10+ pname = "nsapi";
11+ version = "3.0.5";
12+ disabled = pythonOlder "3.7";
13+
14+ src = fetchFromGitHub {
15+ owner = "aquatix";
16+ repo = "ns-api";
17+ rev = "v${version}";
18+ sha256 = "0i1zkvi4mrhkh1gxzpa54mq8mb76s9nf3jxxhpqia56nkq8f8krb";
19+ };
20+
21+ propagatedBuildInputs = [
22+ future
23+ pytz
24+ ];
25+
26+ # Project has no tests
27+ doCheck = false;
28+
29+ pythonImportsCheck = [ "ns_api" ];
30+
31+ meta = with lib; {
32+ description = "Python module to query routes of the Dutch railways";
33+ homepage = "https://github.com/aquatix/ns-api/";
34+ license = with licenses; [ mit ];
35+ maintainers = with maintainers; [ fab ];
36+ };
37+}
pkgs/servers/home-assistant/component-packages.nix+1−1
@@ -548,7 +548,7 @@
548548 "namecheapdns" = ps: with ps; [ defusedxml ];
549549 "nanoleaf" = ps: with ps; [ pynanoleaf ];
550550 "neato" = ps: with ps; [ aiohttp-cors pybotvac ];
551− "nederlandse_spoorwegen" = ps: with ps; [ ]; # missing inputs: nsapi
551+ "nederlandse_spoorwegen" = ps: with ps; [ nsapi ];
552552 "nello" = ps: with ps; [ ]; # missing inputs: pynello
553553 "ness_alarm" = ps: with ps; [ ]; # missing inputs: nessclient
554554 "nest" = ps: with ps; [ aiohttp-cors ha-ffmpeg python-nest ]; # missing inputs: google-nest-sdm
pkgs/top-level/python-packages.nix+2
@@ -4710,6 +4710,8 @@ in {
47104710
47114711 npyscreen = callPackage ../development/python-modules/npyscreen { };
47124712
4713+ nsapi = callPackage ../development/python-modules/nsapi { };
4714+
47134715 ntc-templates = callPackage ../development/python-modules/ntc-templates { };
47144716
47154717 ntlm-auth = callPackage ../development/python-modules/ntlm-auth { };