diff options
author | sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> | 2020-08-24 11:37:55 +0200 |
---|---|---|
committer | Jon <jonringer@users.noreply.github.com> | 2020-08-30 10:17:23 -0700 |
commit | 9388762bf72bcd660ae90766ad8283fdddf43289 (patch) | |
tree | 1475df8d16ebf2070501414791f06bf29feee151 /pkgs/development/python-modules/pytest-randomly | |
parent | ba6ac14311f45d7629aa9c133be713a019741afd (diff) |
pythonPackages.pytest-randomly: init at 3.4.1
Diffstat (limited to 'pkgs/development/python-modules/pytest-randomly')
-rw-r--r-- | pkgs/development/python-modules/pytest-randomly/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pytest-randomly/default.nix b/pkgs/development/python-modules/pytest-randomly/default.nix new file mode 100644 index 0000000000000..c4523ac728c6f --- /dev/null +++ b/pkgs/development/python-modules/pytest-randomly/default.nix @@ -0,0 +1,31 @@ +{ lib, buildPythonPackage, fetchPypi, isPy27 +, factory_boy, faker, numpy +, pytest, pytest_xdist +}: + +buildPythonPackage rec { + pname = "pytest-randomly"; + version = "3.4.1"; + + disabled = isPy27; + + src = fetchPypi { + inherit pname version; + sha256 = "0s9cx692cdchfrjqx7fgf9wnm3fdac211a4hjq1cx9qqnbpdpl2z"; + }; + + propagatedBuildInputs = [ numpy factory_boy faker ]; + + 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"; + + meta = with lib; { + description = "Pytest plugin to randomly order tests and control random.seed"; + homepage = "https://github.com/pytest-dev/pytest-randomly"; + license = licenses.bsd3; + maintainers = [ maintainers.sternenseemann ]; + }; +} |