567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
36 lines
817 B
Nix
36 lines
817 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
poetry-core,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "filecheck";
|
|
version = "1.0.3";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "AntonLydike";
|
|
repo = "filecheck";
|
|
tag = "v${version}";
|
|
hash = "sha256-oOGQIEPIHL4xQRVKOw+8Z8QSowXlavVnck+IOWA9qd8=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "filecheck" ];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/antonlydike/filecheck/releases/tag/${src.tag}";
|
|
homepage = "https://github.com/antonlydike/filecheck";
|
|
license = lib.licenses.asl20;
|
|
description = "Python-native clone of LLVMs FileCheck tool";
|
|
mainProgram = "filecheck";
|
|
maintainers = with lib.maintainers; [ yorickvp ];
|
|
};
|
|
}
|