33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
36 lines
733 B
Nix
36 lines
733 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "whatthepatch";
|
|
version = "1.0.3";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cscorley";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-P4SYSMdDjwXOmre3hXKS4gQ0OS9pz0SWqBeD/WQMQFw=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|