depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-random-order/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

44 lines
913 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
py,
pytest,
pytest-xdist,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "pytest-random-order";
version = "1.1.1";
pyproject = true;
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
hash = "sha256-RHLX008fHF86NZxP/FwT7QZSMvMeyhnIhEwatAbnkIA=";
};
nativeBuildInputs = [ setuptools ];
buildInputs = [ pytest ];
nativeCheckInputs = [
py
pytest-xdist
pytestCheckHook
];
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 = with maintainers; [ prusnak ];
};
}