mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
pythonPackages.paste: refactor move to python-modules
This commit is contained in:
parent
c11f847e24
commit
13f85532e7
31
pkgs/development/python-modules/paste/default.nix
Normal file
31
pkgs/development/python-modules/paste/default.nix
Normal file
@ -0,0 +1,31 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, nose
|
||||
, six
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "paste";
|
||||
version = "2.0.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "062jk0nlxf6lb2wwj6zc20rlvrwsnikpkh90y0dn8cjch93s6ii3";
|
||||
};
|
||||
|
||||
checkInputs = [ nose ];
|
||||
propagatedBuildInputs = [ six ];
|
||||
|
||||
# Certain tests require network
|
||||
checkPhase = ''
|
||||
NOSE_EXCLUDE=test_ok,test_form,test_error,test_stderr,test_paste_website nosetests
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Tools for using a Web Server Gateway Interface stack";
|
||||
homepage = http://pythonpaste.org/;
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
@ -1,16 +1,16 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, fetchzip
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "1.16";
|
||||
pname = "patch";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
extension = "zip";
|
||||
src = fetchzip {
|
||||
url = "mirror://pypi/p/${pname}/${pname}-${version}.zip";
|
||||
sha256 = "1nj55hvyvzax4lxq7vkyfbw91pianzr3hp7ka7j12pgjxccac50g";
|
||||
stripRoot = false;
|
||||
};
|
||||
|
||||
# No tests included in archive
|
||||
|
@ -3101,29 +3101,7 @@ in {
|
||||
|
||||
patsy = callPackage ../development/python-modules/patsy { };
|
||||
|
||||
paste = buildPythonPackage rec {
|
||||
name = "paste-${version}";
|
||||
version = "2.0.3";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/P/Paste/Paste-${version}.tar.gz";
|
||||
sha256 = "062jk0nlxf6lb2wwj6zc20rlvrwsnikpkh90y0dn8cjch93s6ii3";
|
||||
};
|
||||
|
||||
checkInputs = with self; [ nose ];
|
||||
propagatedBuildInputs = with self; [ six ];
|
||||
|
||||
# Certain tests require network
|
||||
checkPhase = ''
|
||||
NOSE_EXCLUDE=test_ok,test_form,test_error,test_stderr,test_paste_website nosetests
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Tools for using a Web Server Gateway Interface stack";
|
||||
homepage = http://pythonpaste.org/;
|
||||
};
|
||||
};
|
||||
|
||||
paste = callPackage ../development/python-modules/paste { };
|
||||
|
||||
PasteDeploy = buildPythonPackage rec {
|
||||
version = "1.5.2";
|
||||
|
Loading…
Reference in New Issue
Block a user