diff --git a/pkgs/development/python-modules/bitbucket-api/default.nix b/pkgs/development/python-modules/bitbucket-api/default.nix new file mode 100644 index 000000000000..86ce1262f6c7 --- /dev/null +++ b/pkgs/development/python-modules/bitbucket-api/default.nix @@ -0,0 +1,23 @@ +{ stdenv, buildPythonPackage, fetchPypi, isPy3k +, requests_oauthlib, nose, sh }: + +buildPythonPackage rec { + pname = "bitbucket-api"; + version = "0.4.4"; + disabled = isPy3k; + + src = fetchPypi { + inherit pname version; + sha256 = "1cl5xa55ijjd23xs8znsd4w4vb3q1vkbmchy7hh6z6nmjcwbr478"; + }; + + propagatedBuildInputs = [ requests_oauthlib nose sh ]; + + doCheck = false; + + meta = with stdenv.lib; { + homepage = https://github.com/Sheeprider/BitBucket-api; + description = "Python library to interact with BitBucket REST API"; + license = licenses.mit; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 335c7c9e1994..15375faa1505 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1240,26 +1240,7 @@ in { binaryornot = callPackage ../development/python-modules/binaryornot { }; - bitbucket_api = buildPythonPackage rec { - name = "bitbucket-api-0.4.4"; - # python3 does not support relative imports - disabled = isPy3k; - - src = pkgs.fetchurl { - url = "mirror://pypi/b/bitbucket-api/${name}.tar.gz"; - sha256 = "e890bc3893d59a6f203c1eb2bae60e78ac4d3869da7ea4fb104dca588aea85b2"; - }; - - propagatedBuildInputs = with self; [ requests_oauthlib nose sh ]; - - doCheck = false; - - meta = { - homepage = https://github.com/Sheeprider/BitBucket-api; - description = "Python library to interact with BitBucket REST API"; - license = licenses.mit; - }; - }; + bitbucket_api = callPackage ../development/python-modules/bitbucket-api { }; # Should be moved out of python-packages.nix bitbucket-cli = buildPythonPackage rec {