1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, setuptools 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "whatthepatch"; 11 version = "1.0.5"; 12 format = "pyproject"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "cscorley"; 18 repo = pname; 19 rev = "refs/tags/${version}"; 20 hash = "sha256-1+OIs77Vyx56pgf7VSmi4UsPgkv8qZXFm8L2jK2CTMk="; 21 }; 22 23 nativeBuildInputs = [ 24 setuptools 25 ]; 26 27 nativeCheckInputs = [ 28 pytestCheckHook 29 ]; 30 31 pythonImportsCheck = [ 32 "whatthepatch" 33 ]; 34 35 meta = with lib; { 36 description = "Python library for both parsing and applying patch files"; 37 homepage = "https://github.com/cscorley/whatthepatch"; 38 changelog = "https://github.com/cscorley/whatthepatch/blob/${version}/HISTORY.md"; 39 license = licenses.mit; 40 maintainers = with maintainers; [ joelkoen ]; 41 }; 42}