pythonPackages.bitbucket_api: Move to own file

This commit is contained in:
Elis Hirwing 2018-03-31 13:04:00 +02:00 committed by Frederik Rietdijk
parent 0fdebd98b9
commit 9ae3047c2f
2 changed files with 24 additions and 20 deletions

View File

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

View File

@ -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 {