2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2022-01-13 20:06:32 +00:00
|
|
|
, pythonOlder
|
2023-02-22 10:55:15 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, setuptools
|
2021-06-04 09:07:49 +00:00
|
|
|
, setuptools-scm
|
2023-02-22 10:55:15 +00:00
|
|
|
, wheel
|
2021-02-19 19:06:45 +00:00
|
|
|
, py
|
2020-04-24 23:36:52 +00:00
|
|
|
, pytest
|
2021-02-19 19:06:45 +00:00
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-forked";
|
2023-02-22 10:55:15 +00:00
|
|
|
version = "1.6.0";
|
2022-01-13 20:06:32 +00:00
|
|
|
|
2023-02-22 10:55:15 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-22 10:55:15 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pytest-dev";
|
|
|
|
repo = "pytest-forked";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-owkGwF5WQ17/CXwTsIYJ2AgktekRB4qhtsDxR0LCI/k=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-22 10:55:15 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
wheel
|
2023-01-20 10:41:00 +00:00
|
|
|
];
|
|
|
|
|
2021-03-19 17:17:44 +00:00
|
|
|
buildInputs = [
|
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
py
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-01-20 10:41:00 +00:00
|
|
|
py
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
setupHook = ./setup-hook.sh;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
2023-02-22 10:55:15 +00:00
|
|
|
changelog = "https://github.com/pytest-dev/pytest-forked/blob/${src.rev}/CHANGELOG.rst";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Run tests in isolated forked subprocesses";
|
|
|
|
homepage = "https://github.com/pytest-dev/pytest-forked";
|
|
|
|
license = lib.licenses.mit;
|
2021-02-19 19:06:45 +00:00
|
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|