1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

pythonPackages.keepalive: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-16 14:07:29 -04:00 committed by Frederik Rietdijk
parent c099f8aaa3
commit 0e26b1e366
2 changed files with 25 additions and 17 deletions

View file

@ -0,0 +1,24 @@
{ stdenv
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "keepalive";
version = "0.5";
src = fetchPypi {
inherit pname version;
sha256 = "3c6b96f9062a5a76022f0c9d41e9ef5552d80b1cadd4fccc1bf8f183ba1d1ec1";
};
# No tests included
doCheck = false;
meta = with stdenv.lib; {
description = "An HTTP handler for `urllib2` that supports HTTP 1.1 and keepalive";
homepage = "https://github.com/wikier/keepalive";
license = licenses.asl20;
};
}

View file

@ -2326,23 +2326,7 @@ in {
kaptan = callPackage ../development/python-modules/kaptan { };
keepalive = buildPythonPackage rec {
name = "keepalive-${version}";
version = "0.5";
src = pkgs.fetchurl {
url = "mirror://pypi/k/keepalive/keepalive-${version}.tar.gz";
sha256 = "3c6b96f9062a5a76022f0c9d41e9ef5552d80b1cadd4fccc1bf8f183ba1d1ec1";
};
# No tests included
doCheck = false;
meta = with stdenv.lib; {
description = "An HTTP handler for `urllib2` that supports HTTP 1.1 and keepalive";
homepage = "https://github.com/wikier/keepalive";
};
};
keepalive = callPackage ../development/python-modules/keepalive { };
keyrings-alt = callPackage ../development/python-modules/keyrings-alt {};