mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-16 21:10:25 +08:00
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.
45 lines
937 B
Nix
45 lines
937 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, poetry-core
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "filecheck";
|
|
version = "0.0.22";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mull-project";
|
|
repo = "FileCheck.py";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-I2SypKkgcVuLyLiwNw5oWDb9qT56TbC6vbui8PEcziI=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace "poetry>=0.12" "poetry-core" \
|
|
--replace "poetry.masonry.api" "poetry.core.masonry.api"
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"filecheck"
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/mull-project/FileCheck.py";
|
|
license = licenses.asl20;
|
|
description = "Python port of LLVM's FileCheck, flexible pattern matching file verifier";
|
|
maintainers = with maintainers; [ yorickvp ];
|
|
};
|
|
}
|