83405b6dd2
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
36 lines
733 B
Nix
36 lines
733 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "whatthepatch";
|
|
version = "1.0.4";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cscorley";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-pejph0WyhryS2injlFElFozIDl6zJeiENh6fqh6982s=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "whatthepatch" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python library for both parsing and applying patch files";
|
|
homepage = "https://github.com/cscorley/whatthepatch";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ joelkoen ];
|
|
};
|
|
}
|