pythonPackages.http_signature: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-16 16:59:16 -04:00 committed by Frederik Rietdijk
parent 2bc69b7526
commit 8b5d562d25
2 changed files with 27 additions and 17 deletions

View File

@ -0,0 +1,26 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, isPy3k
, pycrypto
}:
buildPythonPackage rec {
pname = "http_signature";
version = "0.1.4";
disabled = isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "14acc192ef20459d5e11b4e800dd3a4542f6bd2ab191bf5717c696bf30936c62";
};
propagatedBuildInputs = [ pycrypto ];
meta = with stdenv.lib; {
homepage = https://github.com/atl/py-http-signature;
description = "Simple secure signing for HTTP requests using http-signature";
license = licenses.mit;
};
}

View File

@ -2452,23 +2452,7 @@ in {
html5lib = callPackage ../development/python-modules/html5lib { };
http_signature = buildPythonPackage (rec {
name = "http_signature-0.1.4";
disabled = isPy3k;
src = pkgs.fetchurl {
url = "mirror://pypi/h/http_signature/${name}.tar.gz";
sha256 = "14acc192ef20459d5e11b4e800dd3a4542f6bd2ab191bf5717c696bf30936c62";
};
propagatedBuildInputs = with self; [pycrypto];
meta = {
homepage = https://github.com/atl/py-http-signature;
description = "";
license = licenses.mit;
};
});
http_signature = callPackage ../development/python-modules/http_signature { };
httpbin = callPackage ../development/python-modules/httpbin { };