python3Packages.pytest-randomly: depends on pytest (#477768)
This commit is contained in:
@@ -4,31 +4,28 @@
|
||||
factory-boy,
|
||||
faker,
|
||||
fetchFromGitHub,
|
||||
importlib-metadata,
|
||||
numpy,
|
||||
pytest,
|
||||
pytest-xdist,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pytest-randomly";
|
||||
version = "3.13.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
repo = "pytest-randomly";
|
||||
owner = "pytest-dev";
|
||||
rev = version;
|
||||
tag = version;
|
||||
hash = "sha256-bxbW22Nf/0hfJYSiz3xdrNCzrb7vZwuVvSIrWl0Bkv4=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools ];
|
||||
build-system = [ setuptools ];
|
||||
|
||||
propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [ importlib-metadata ];
|
||||
buildInputs = [ pytest ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
factory-boy
|
||||
@@ -46,7 +43,7 @@ buildPythonPackage rec {
|
||||
pythonImportsCheck = [ "pytest_randomly" ];
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/pytest-dev/pytest-randomly/blob/${version}/CHANGELOG.rst";
|
||||
changelog = "https://github.com/pytest-dev/pytest-randomly/blob/${src.tag}/CHANGELOG.rst";
|
||||
description = "Pytest plugin to randomly order tests and control random.seed";
|
||||
homepage = "https://github.com/pytest-dev/pytest-randomly";
|
||||
license = lib.licenses.mit;
|
||||
|
||||
Reference in New Issue
Block a user