From 08257057badaa1d536ef56cf8b3924b3a49b8bab Mon Sep 17 00:00:00 2001 From: mupdt <25388474+mupdt@users.noreply.github.com> Date: Mon, 1 Nov 2021 10:20:49 +0000 Subject: [PATCH] python3Packages.stashy: init at 0.7 --- .../python-modules/stashy/default.nix | 31 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/development/python-modules/stashy/default.nix diff --git a/pkgs/development/python-modules/stashy/default.nix b/pkgs/development/python-modules/stashy/default.nix new file mode 100644 index 000000000000..fa866cc26037 --- /dev/null +++ b/pkgs/development/python-modules/stashy/default.nix @@ -0,0 +1,31 @@ +{ lib +, buildPythonPackage +, decorator +, fetchPypi +, pythonOlder +, requests + }: + +buildPythonPackage rec { + pname = "stashy"; + version = "0.7"; + disabled = pythonOlder "3.4"; + + src = fetchPypi { + inherit pname version; + sha256 = "1x89zazwxnsx6rdfw8nfr372hj4sk8nrcs5hsjxpcxcva0calrcr"; + }; + + propagatedBuildInputs = [ decorator requests ]; + + # Tests require internet connection + doCheck = false; + pythonImportsCheck = [ "stashy" ]; + + meta = with lib; { + description = "Python client for the Atlassian Bitbucket Server (formerly known as Stash) REST API."; + homepage = "https://github.com/cosmin/stashy"; + license = licenses.asl20; + maintainers = with maintainers; [ mupdt ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index bab1fb4af2c2..314dc9108a59 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8713,6 +8713,8 @@ in { starline = callPackage ../development/python-modules/starline { }; + stashy = callPackage ../development/python-modules/stashy { }; + staticjinja = callPackage ../development/python-modules/staticjinja { }; statistics = callPackage ../development/python-modules/statistics { };