fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
69 lines
1.4 KiB
Nix
69 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools-scm,
|
|
pytest-runner,
|
|
pytest,
|
|
decopatch,
|
|
makefun,
|
|
six,
|
|
pytestCheckHook,
|
|
numpy,
|
|
pandas,
|
|
tabulate,
|
|
pytest-cases,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-harvest";
|
|
version = "1.10.5";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "smarie";
|
|
repo = "python-pytest-harvest";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-s8QiuUFRTTRhSpLa0DHScKFC9xdu+w2rssWCg8sIjsg=";
|
|
};
|
|
|
|
# create file, that is created by setuptools_scm
|
|
# we disable this file creation as it touches internet
|
|
postPatch = ''
|
|
echo "version = '${version}'" > pytest_harvest/_version.py
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
pytest-runner
|
|
];
|
|
|
|
buildInputs = [ pytest ];
|
|
|
|
propagatedBuildInputs = [
|
|
decopatch
|
|
makefun
|
|
six
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
numpy
|
|
pandas
|
|
tabulate
|
|
pytest-cases
|
|
];
|
|
|
|
pythonImportsCheck = [ "pytest_harvest" ];
|
|
|
|
meta = with lib; {
|
|
description = "Store data created during your `pytest` tests execution, and retrieve it at the end of the session, e.g. for applicative benchmarking purposes";
|
|
homepage = "https://github.com/smarie/python-pytest-harvest";
|
|
changelog = "https://github.com/smarie/python-pytest-harvest/releases/tag/${src.rev}";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ mbalatsko ];
|
|
};
|
|
}
|