From 7c85cd4e4be9056a22eaf1bac21e1fff77848650 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 3 Jun 2021 23:35:41 +0200 Subject: [PATCH] python3Packages.nsapi: init at 3.0.5 --- .../python-modules/nsapi/default.nix | 37 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 39 insertions(+) create mode 100644 pkgs/development/python-modules/nsapi/default.nix diff --git a/pkgs/development/python-modules/nsapi/default.nix b/pkgs/development/python-modules/nsapi/default.nix new file mode 100644 index 000000000000..453eeb2c9519 --- /dev/null +++ b/pkgs/development/python-modules/nsapi/default.nix @@ -0,0 +1,37 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, future +, pythonOlder +, pytz +}: + +buildPythonPackage rec { + pname = "nsapi"; + version = "3.0.5"; + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "aquatix"; + repo = "ns-api"; + rev = "v${version}"; + sha256 = "0i1zkvi4mrhkh1gxzpa54mq8mb76s9nf3jxxhpqia56nkq8f8krb"; + }; + + propagatedBuildInputs = [ + future + pytz + ]; + + # Project has no tests + doCheck = false; + + pythonImportsCheck = [ "ns_api" ]; + + meta = with lib; { + description = "Python module to query routes of the Dutch railways"; + homepage = "https://github.com/aquatix/ns-api/"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e4e072dce936..065646a1ac99 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4718,6 +4718,8 @@ in { npyscreen = callPackage ../development/python-modules/npyscreen { }; + nsapi = callPackage ../development/python-modules/nsapi { }; + ntc-templates = callPackage ../development/python-modules/ntc-templates { }; ntlm-auth = callPackage ../development/python-modules/ntlm-auth { };