pythonPackages.patch: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-25 20:54:15 -04:00 committed by Frederik Rietdijk
parent 0ce6ff5c01
commit 35bbea5c41
2 changed files with 27 additions and 22 deletions

@ -0,0 +1,26 @@
{ stdenv
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
version = "1.16";
pname = "patch";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "1nj55hvyvzax4lxq7vkyfbw91pianzr3hp7ka7j12pgjxccac50g";
};
# No tests included in archive
doCheck = false;
meta = with stdenv.lib; {
description = "A library to parse and apply unified diffs";
homepage = https://github.com/techtonik/python-patch/;
license = licenses.mit;
maintainers = [ maintainers.igsha ];
};
}

@ -3095,28 +3095,7 @@ in {
partd = callPackage ../development/python-modules/partd { };
patch = buildPythonPackage rec {
name = "${pname}-${version}";
version = "1.16";
pname = "patch";
src = pkgs.fetchzip {
url = "mirror://pypi/p/${pname}/${name}.zip";
sha256 = "1nj55hvyvzax4lxq7vkyfbw91pianzr3hp7ka7j12pgjxccac50g";
stripRoot = false;
};
# No tests included in archive
doCheck = false;
meta = {
description = "A library to parse and apply unified diffs";
homepage = https://github.com/techtonik/python-patch/;
license = licenses.mit;
platforms = platforms.all;
maintainers = [ maintainers.igsha ];
};
};
patch = callPackage ../development/python-modules/patch { };
pathos = buildPythonPackage rec {
name = "pathos-${version}";