94427deb9d
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
42 lines
873 B
Nix
42 lines
873 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, setuptools
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "whatthepatch";
|
|
version = "1.0.5";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cscorley";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-1+OIs77Vyx56pgf7VSmi4UsPgkv8qZXFm8L2jK2CTMk=";
|
|
};
|
|
|
|
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";
|
|
changelog = "https://github.com/cscorley/whatthepatch/blob/${version}/HISTORY.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ joelkoen ];
|
|
};
|
|
}
|