Merge branch 'twine' into HEAD

This commit is contained in:
Frederik Rietdijk 2017-09-28 10:22:17 +02:00
commit 036a7fb976
4 changed files with 93 additions and 41 deletions

View File

@ -0,0 +1,24 @@
{ lib
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "pyblake2";
version = "0.9.3";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "626448e1fe1cc01d2197118954bec9f158378577e12686d5b01979f7f0fa2212";
};
# requires setting up sphinx doctest
doCheck = false;
meta = {
description = "BLAKE2 hash function extension module";
license = lib.licenses.publicDomain;
homepage = https://github.com/dchest/pyblake2;
};
}

View File

@ -0,0 +1,32 @@
{ lib
, buildPythonPackage
, fetchPypi
, requests
, betamax
, mock
, pytest
}:
buildPythonPackage rec {
pname = "requests-toolbelt";
version = "0.8.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "f6a531936c6fa4c6cfce1b9c10d5c4f498d16528d2a54a22ca00011205a187b5";
};
checkInputs = [ betamax mock pytest ];
propagatedBuildInputs = [ requests ];
checkPhase = ''
py.test tests
'';
meta = {
description = "A toolbelt of useful classes and functions to be used with python-requests";
homepage = http://toolbelt.rtfd.org;
maintainers = with lib.maintainers; [ matthiasbeyer jgeerds ];
};
}

View File

@ -0,0 +1,32 @@
{ lib
, buildPythonPackage
, fetchPypi
, pkginfo
, requests
, requests_toolbelt
, tqdm
, pyblake2
}:
buildPythonPackage rec {
pname = "twine";
version = "1.9.1";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "caa45b7987fc96321258cd7668e3be2ff34064f5c66d2d975b641adca659c1ab";
};
propagatedBuildInputs = [ pkginfo requests requests_toolbelt tqdm pyblake2 ];
# Requires network
doCheck = false;
meta = {
description = "Collection of utilities for interacting with PyPI";
homepage = https://github.com/pypa/twine;
license = lib.licenses.asl20;
maintainer = with lib.maintainers; [ fridh ];
};
}

View File

@ -7156,6 +7156,8 @@ in {
pycassa = callPackage ../development/python-modules/pycassa { };
pyblake2 = callPackage ../development/python-modules/pyblake2 { };
pybluez = buildPythonPackage rec {
version = "unstable-20160819";
pname = "pybluez";
@ -18428,26 +18430,8 @@ in {
requests_oauthlib = callPackage ../development/python-modules/requests-oauthlib.nix { };
requests_toolbelt = buildPythonPackage rec {
version = "0.7.1";
name = "requests-toolbelt-${version}";
src = pkgs.fetchurl {
url = "https://github.com/sigmavirus24/requests-toolbelt/archive/${version}.tar.gz";
sha256 = "16grklnbgcfwqj3f39gw7fc9afi7xlp9gm7x8w6mi81dzhdxf50y";
};
propagatedBuildInputs = with self; [ requests ];
buildInputs = with self; [ betamax mock pytest ];
meta = {
description = "A toolbelt of useful classes and functions to be used with python-requests";
homepage = http://toolbelt.rtfd.org;
maintainers = with maintainers; [ matthiasbeyer jgeerds ];
};
};
requests-toolbelt = callPackage ../development/python-modules/requests-toolbelt { };
requests_toolbelt = self.requests-toolbelt; # Old attr, 2017-09-26
retry_decorator = buildPythonPackage rec {
name = "retry_decorator-1.0.0";
@ -21944,27 +21928,7 @@ in {
};
};
twine = buildPythonPackage rec {
name = "twine-${version}";
version = "1.8.1";
src = pkgs.fetchurl {
url = "mirror://pypi/t/twine/${name}.tar.gz";
sha256 = "68b663691a947b844f92853c992d42bb68b6333bffc9ab7f661346b001c1da82";
};
propagatedBuildInputs = with self; [ clint pkginfo requests requests_toolbelt ];
# Requires network
doCheck = false;
meta = {
description = "Collection of utilities for interacting with PyPI";
homepage = https://github.com/pypa/twine;
license = licenses.asl20;
maintainer = with maintainers; [ fridh ];
};
};
twine = callPackage ../development/python-modules/twine { };
twisted = callPackage ../development/python-modules/twisted { };