pythonPackages.patch: refactor move to python-modules
This commit is contained in:
parent
0ce6ff5c01
commit
35bbea5c41
26
pkgs/development/python-modules/patch/default.nix
Normal file
26
pkgs/development/python-modules/patch/default.nix
Normal file
@ -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}";
|
||||
|
Loading…
Reference in New Issue
Block a user