Merge pull request #118588 from sternenseemann/pytest-randomly-3.6.0
This commit is contained in:
commit
8c3fc3abfb
|
@ -0,0 +1,36 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
, importlib-metadata
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "backports.entry-points-selectable";
|
||||
version = "1.0.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit version;
|
||||
# pypi project name and tarball name differ
|
||||
pname = builtins.replaceStrings [ "-" ] [ "_" ] pname;
|
||||
sha256 = "f30bcd19c5e2728ac93821d2b6ae0a325597e0ca12324fd91a39fa80e1cd0dd8";
|
||||
};
|
||||
|
||||
format = "pyproject";
|
||||
|
||||
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
|
||||
importlib-metadata
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Compatibility shim providing selectable entry points for older implementations";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.sternenseemann ];
|
||||
homepage = "https://github.com/jaraco/backports.entry_points_selectable";
|
||||
};
|
||||
}
|
|
@ -1,26 +1,35 @@
|
|||
{ lib, buildPythonPackage, fetchPypi, isPy27
|
||||
, factory_boy, faker, numpy
|
||||
, pytest, pytest_xdist
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder
|
||||
, factory_boy, faker, numpy, backports-entry-points-selectable
|
||||
, pytestCheckHook, pytest_xdist
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pytest-randomly";
|
||||
version = "3.5.0";
|
||||
version = "3.6.0";
|
||||
|
||||
disabled = isPy27;
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "440cec143fd9b0adeb072006c71e0294402a2bc2ccd08079c2341087ba4cf2d1";
|
||||
# fetch from GitHub as pypi tarball doesn't include tests
|
||||
src = fetchFromGitHub {
|
||||
repo = pname;
|
||||
owner = "pytest-dev";
|
||||
rev = version;
|
||||
sha256 = "17s7gx8b7sl7mp77f5dxzwbb32qliz9awrp6xz58bhjqp7pcsa5h";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ numpy factory_boy faker ];
|
||||
propagatedBuildInputs = [
|
||||
backports-entry-points-selectable
|
||||
];
|
||||
|
||||
checkInputs = [ pytest pytest_xdist ];
|
||||
|
||||
# test warnings are fixed on an unreleased version:
|
||||
# https://github.com/pytest-dev/pytest-randomly/pull/281
|
||||
checkPhase = "pytest -p no:randomly";
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
pytest_xdist
|
||||
numpy
|
||||
factory_boy
|
||||
faker
|
||||
];
|
||||
# needs special invocation, copied from tox.ini
|
||||
pytestFlagsArray = [ "-p" "no:randomly" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Pytest plugin to randomly order tests and control random.seed";
|
||||
|
|
|
@ -891,6 +891,8 @@ in {
|
|||
|
||||
backports-datetime-fromisoformat = callPackage ../development/python-modules/backports-datetime-fromisoformat { };
|
||||
|
||||
backports-entry-points-selectable = callPackage ../development/python-modules/backports-entry-points-selectable { };
|
||||
|
||||
backports_functools_lru_cache = callPackage ../development/python-modules/backports_functools_lru_cache { };
|
||||
|
||||
backports_shutil_get_terminal_size = callPackage ../development/python-modules/backports_shutil_get_terminal_size { };
|
||||
|
|
Loading…
Reference in a new issue