From 03fa93875c02cedeaec6e091da0652d629dff1a3 Mon Sep 17 00:00:00 2001 From: Elis Hirwing Date: Sat, 31 Mar 2018 13:07:27 +0200 Subject: [PATCH] pythonPackages.bitbucket-cli: Move to own file --- .../python-modules/bitbucket-cli/default.nix | 23 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 22 +----------------- 2 files changed, 24 insertions(+), 21 deletions(-) create mode 100644 pkgs/development/python-modules/bitbucket-cli/default.nix diff --git a/pkgs/development/python-modules/bitbucket-cli/default.nix b/pkgs/development/python-modules/bitbucket-cli/default.nix new file mode 100644 index 000000000000..b5d115f4d0bb --- /dev/null +++ b/pkgs/development/python-modules/bitbucket-cli/default.nix @@ -0,0 +1,23 @@ +{ stdenv, buildPythonPackage, fetchPypi, isPy3k, requests }: + +buildPythonPackage rec { + pname = "bitbucket-cli"; + version = "0.5.1"; + disabled = isPy3k; + + src = fetchPypi { + inherit pname version; + sha256 = "1xmn73x6jirnwfwcdy380ncmkai9f9dhmld6zin01ypbqwgf50fq"; + }; + + propagatedBuildInputs = [ requests ]; + + # No tests + doCheck = false; + + meta = with stdenv.lib; { + description = "Bitbucket command line interface"; + homepage = https://bitbucket.org/zhemao/bitbucket-cli; + maintainers = with maintainers; [ refnil ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 15375faa1505..9bb2408f2acf 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1242,27 +1242,7 @@ in { bitbucket_api = callPackage ../development/python-modules/bitbucket-api { }; - # Should be moved out of python-packages.nix - bitbucket-cli = buildPythonPackage rec { - name = "bitbucket-cli-0.5.1"; - src = pkgs.fetchurl { - url = "mirror://pypi/b/bitbucket-cli/${name}.tar.gz"; - sha256 = "d881e21ec7ebfa006cfca6d10a5b7229aa59990568f8c6b8e3364769fa38b6f6"; - }; - - propagatedBuildInputs = [ self.requests ]; - - # No tests - doCheck = false; - - disabled = isPy3k; - - meta = { - description = "Bitbucket command line interface"; - homepage = "https://bitbucket.org/zhemao/bitbucket-cli"; - maintainers = with maintainers; [ refnil ]; - }; - }; + bitbucket-cli = callPackage ../development/python-modules/bitbucket-cli { }; bitstring = callPackage ../development/python-modules/bitstring { };