python311Packages.pytest-repeat: add format
- disable on unsupported Python releases - add pythonImportsCheck - switch to pytestCheckHook
This commit is contained in:
parent
67aa71bfb0
commit
d5ecd32ba1
1 changed files with 15 additions and 6 deletions
|
@ -1,30 +1,39 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, setuptools-scm
|
|
||||||
, pytest
|
, pytest
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, setuptools-scm
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pytest-repeat";
|
pname = "pytest-repeat";
|
||||||
version = "0.9.2";
|
version = "0.9.2";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "sha256-eWc0Ra6ZruMzuBHH0AN660CPkzuImDdf8vT/8eO6aGs=";
|
hash = "sha256-eWc0Ra6ZruMzuBHH0AN660CPkzuImDdf8vT/8eO6aGs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
setuptools-scm
|
setuptools-scm
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
buildInputs = [
|
||||||
pytest
|
pytest
|
||||||
];
|
];
|
||||||
|
|
||||||
checkPhase = ''
|
nativeCheckInputs = [
|
||||||
pytest
|
pytestCheckHook
|
||||||
'';
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"pytest_repeat"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Pytest plugin for repeating tests";
|
description = "Pytest plugin for repeating tests";
|
||||||
|
|
Loading…
Reference in a new issue