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 { };