mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-10 15:23:43 +00:00
Otherwise python312Packages.jaraco-test fails to build with
INTERNALERROR> File "/nix/store/fhvb4szwz30rh249avxqlr0i6r53pk1n-python3.12-pytest-9.0.2/lib/python3.12/site-packages/_pytest/reports.py", line 420, in from_item_and_call
INTERNALERROR> assert line is not None
INTERNALERROR> ^^^^^^^^^^^^^^^^
INTERNALERROR> AssertionError
49 lines
1.0 KiB
Nix
49 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools-scm,
|
|
jaraco-functools,
|
|
jaraco-context,
|
|
jaraco-collections,
|
|
pytest8_3CheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jaraco-test";
|
|
version = "5.6.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jaraco";
|
|
repo = "jaraco.test";
|
|
tag = "v${version}";
|
|
hash = "sha256-Ym0r92xCh+DNpFexqPlRVgcDGYNvnaJHEs5/RMaUr+s=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace-fail '"coherent.licensed",' ""
|
|
'';
|
|
|
|
build-system = [ setuptools-scm ];
|
|
|
|
dependencies = [
|
|
jaraco-functools
|
|
jaraco-context
|
|
jaraco-collections
|
|
];
|
|
|
|
nativeCheckInputs = [ pytest8_3CheckHook ];
|
|
|
|
pythonImportsCheck = [ "jaraco.test" ];
|
|
|
|
meta = {
|
|
description = "Testing support by jaraco";
|
|
homepage = "https://github.com/jaraco/jaraco.test";
|
|
changelog = "https://github.com/jaraco/jaraco.test/blob/${src.tag}/NEWS.rst";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
};
|
|
}
|