2018-08-08 20:32:52 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, setuptools_scm
|
|
|
|
, pytest
|
2019-01-03 23:56:45 +00:00
|
|
|
, fetchpatch
|
2018-08-08 20:32:52 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-repeat";
|
2018-11-09 04:24:09 +00:00
|
|
|
version = "0.7.0";
|
2018-08-08 20:32:52 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-09 04:24:09 +00:00
|
|
|
sha256 = "0axbrpqal3cqw9zq6dakdbg49pnf5gvyvq6yn93hp1ayc7fnhzk3";
|
2018-08-08 20:32:52 +01:00
|
|
|
};
|
|
|
|
|
2019-01-03 23:56:45 +00:00
|
|
|
# fixes support for pytest >3.6. Should be droppable during the
|
|
|
|
# next bump.
|
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = https://github.com/pytest-dev/pytest-repeat/commit/f94b6940e3651b7593aca5a7a987eb56abe04cb1.patch;
|
|
|
|
sha256 = "00da1gmpq9pslcmm8pw93jcbp8j2zymzqdsm6jq3xinkvjpsbmny";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-08-19 15:09:01 +01:00
|
|
|
buildInputs = [ setuptools_scm ];
|
|
|
|
checkInputs = [ pytest ];
|
2018-08-08 20:32:52 +01:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Pytest plugin for repeating tests";
|
|
|
|
homepage = https://github.com/pytest-dev/pytest-repeat;
|
|
|
|
maintainers = with lib.maintainers; [ costrouc ];
|
|
|
|
license = lib.licenses.mpl20;
|
|
|
|
};
|
|
|
|
}
|