Commit 85c1d08c authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python311Packages.pytest-random-order: refactor

parent 9a0ea920
Loading
Loading
Loading
Loading
+27 −6
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, py
, pytest
, pytest-xdist
, pytestCheckHook
, pythonOlder
, setuptools
}:

buildPythonPackage rec {
  version = "1.1.1";
  format = "setuptools";
  pname = "pytest-random-order";
  version = "1.1.1";
  pyproject = true;

  disabled = pythonOlder "3.5";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-RHLX008fHF86NZxP/FwT7QZSMvMeyhnIhEwatAbnkIA=";
  };

  disabled = pythonOlder "3.5";
  nativeBuildInputs = [
    setuptools
  ];

  buildInputs = [
    pytest
  ];

  nativeCheckInputs = [
    py
    pytest-xdist
    pytestCheckHook
  ];

  buildInputs = [ pytest ];
  pythonImportsCheck = [
    "random_order"
  ];

  meta = with lib; {
    homepage = "https://github.com/jbasko/pytest-random-order";
    description = "Randomise the order of tests with some control over the randomness";
    changelog = "https://github.com/jbasko/pytest-random-order/releases/tag/v${version}";
    license = licenses.mit;
    maintainers = [ maintainers.prusnak ];
    maintainers = with maintainers; [ prusnak ];
  };
}