2021-02-25 07:53:12 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, setuptools-scm
|
|
|
|
}:
|
2020-12-07 10:46:57 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-subtests";
|
2021-02-25 07:48:53 +00:00
|
|
|
version = "0.4.0";
|
2021-02-25 07:53:12 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
2020-12-07 10:46:57 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-25 07:48:53 +00:00
|
|
|
sha256 = "sha256-jZ4sHR3OEfe30snQkgLr/HdXt/8MrJtyrTKO3+fuA3s=";
|
2020-12-07 10:46:57 +00:00
|
|
|
};
|
|
|
|
|
2021-02-25 07:53:12 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2020-12-07 10:46:57 +00:00
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
|
2021-02-25 07:53:12 +00:00
|
|
|
pythonImportsCheck = [ "pytest_subtests" ];
|
|
|
|
|
2020-12-07 10:46:57 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "pytest plugin for unittest subTest() support and subtests fixture";
|
|
|
|
homepage = "https://github.com/pytest-dev/pytest-subtests";
|
|
|
|
license = licenses.mit;
|
2021-02-25 07:53:12 +00:00
|
|
|
maintainers = with maintainers; [ fab ];
|
2020-12-07 10:46:57 +00:00
|
|
|
};
|
|
|
|
}
|