pythonPackages.pytest-randomly: 3.5.0 -> 3.6.0

* clean up some erroneously propagated dependencies

* use pytestCheckHook, clarify specific test settings
This commit is contained in:
sternenseemann 2021-04-04 18:47:02 +02:00
parent 596e5eed55
commit 563366d673

View File

@ -1,26 +1,35 @@
{ lib, buildPythonPackage, fetchPypi, isPy27 { lib, buildPythonPackage, fetchFromGitHub, pythonOlder
, factory_boy, faker, numpy , factory_boy, faker, numpy, backports-entry-points-selectable
, pytest, pytest_xdist , pytestCheckHook, pytest_xdist
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pytest-randomly"; pname = "pytest-randomly";
version = "3.5.0"; version = "3.6.0";
disabled = isPy27; disabled = pythonOlder "3.6";
src = fetchPypi { # fetch from GitHub as pypi tarball doesn't include tests
inherit pname version; src = fetchFromGitHub {
sha256 = "440cec143fd9b0adeb072006c71e0294402a2bc2ccd08079c2341087ba4cf2d1"; repo = pname;
owner = "pytest-dev";
rev = version;
sha256 = "17s7gx8b7sl7mp77f5dxzwbb32qliz9awrp6xz58bhjqp7pcsa5h";
}; };
propagatedBuildInputs = [ numpy factory_boy faker ]; propagatedBuildInputs = [
backports-entry-points-selectable
];
checkInputs = [ pytest pytest_xdist ]; checkInputs = [
pytestCheckHook
# test warnings are fixed on an unreleased version: pytest_xdist
# https://github.com/pytest-dev/pytest-randomly/pull/281 numpy
checkPhase = "pytest -p no:randomly"; factory_boy
faker
];
# needs special invocation, copied from tox.ini
pytestFlagsArray = [ "-p" "no:randomly" ];
meta = with lib; { meta = with lib; {
description = "Pytest plugin to randomly order tests and control random.seed"; description = "Pytest plugin to randomly order tests and control random.seed";