mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 12:14:10 +00:00
c44ae94eab
pytest extensions should not propagate pytest. Doing so makes it impossible to combine the package with another version of pytest, which sometimes is needed.
38 lines
687 B
Nix
38 lines
687 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, setuptools_scm
|
|
, py
|
|
, pytest
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-forked";
|
|
version = "1.3.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "6aa9ac7e00ad1a539c41bec6d21011332de671e938c7637378ec9710204e37ca";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
|
|
|
buildInputs = [
|
|
pytest
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
py
|
|
];
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
meta = {
|
|
description = "Run tests in isolated forked subprocesses";
|
|
homepage = "https://github.com/pytest-dev/pytest-forked";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
};
|
|
}
|