1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatchling, 6 pytestCheckHook, 7}: 8 9buildPythonPackage rec { 10 pname = "filecheck"; 11 version = "0.0.24"; 12 format = "pyproject"; 13 14 src = fetchFromGitHub { 15 owner = "mull-project"; 16 repo = "FileCheck.py"; 17 tag = "v${version}"; 18 hash = "sha256-VbMlCqGd3MVpj0jEKjSGC2L0s/3e/d53b+2eZcXZneo="; 19 }; 20 21 nativeBuildInputs = [ hatchling ]; 22 23 nativeCheckInputs = [ pytestCheckHook ]; 24 25 pythonImportsCheck = [ "filecheck" ]; 26 27 meta = with lib; { 28 changelog = "https://github.com/mull-project/FileCheck.py/releases/tag/v${version}"; 29 homepage = "https://github.com/mull-project/FileCheck.py"; 30 license = licenses.asl20; 31 description = "Python port of LLVM's FileCheck, flexible pattern matching file verifier"; 32 mainProgram = "filecheck"; 33 maintainers = with maintainers; [ yorickvp ]; 34 }; 35}