mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 06:24:08 +01:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
27 lines
587 B
Nix
27 lines
587 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchzip,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "1.16";
|
|
format = "setuptools";
|
|
pname = "patch";
|
|
|
|
src = fetchzip {
|
|
url = "mirror://pypi/p/${pname}/${pname}-${version}.zip";
|
|
sha256 = "1nj55hvyvzax4lxq7vkyfbw91pianzr3hp7ka7j12pgjxccac50g";
|
|
stripRoot = false;
|
|
};
|
|
|
|
# No tests included in archive
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Library to parse and apply unified diffs";
|
|
homepage = "https://github.com/techtonik/python-patch/";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.igsha ];
|
|
};
|
|
}
|