Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / pytest-randomly / default.nix
blobbe8d675fc1ea4ae5f855b885012daa3a704adc94
1 { lib, buildPythonPackage, fetchPypi, isPy27
2 , factory_boy, faker, numpy
3 , pytest, pytest_xdist
4 }:
6 buildPythonPackage rec {
7   pname = "pytest-randomly";
8   version = "3.5.0";
10   disabled = isPy27;
12   src = fetchPypi {
13     inherit pname version;
14     sha256 = "440cec143fd9b0adeb072006c71e0294402a2bc2ccd08079c2341087ba4cf2d1";
15   };
17   propagatedBuildInputs = [ numpy factory_boy faker ];
19   checkInputs = [ pytest pytest_xdist ];
21   # test warnings are fixed on an unreleased version:
22   # https://github.com/pytest-dev/pytest-randomly/pull/281
23   checkPhase = "pytest -p no:randomly";
25   meta = with lib; {
26     description = "Pytest plugin to randomly order tests and control random.seed";
27     homepage = "https://github.com/pytest-dev/pytest-randomly";
28     license = licenses.bsd3;
29     maintainers = [ maintainers.sternenseemann ];
30   };