mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 00:53:57 +00:00
0f6cf5fefe
Test suite and build environment had several issues with Pytest >3.6
which can be fixed by applying the (yet unreleased) upstream patch from
f94b6940e3
.patch
40 lines
888 B
Nix
40 lines
888 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, setuptools_scm
|
|
, pytest
|
|
, fetchpatch
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-repeat";
|
|
version = "0.7.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0axbrpqal3cqw9zq6dakdbg49pnf5gvyvq6yn93hp1ayc7fnhzk3";
|
|
};
|
|
|
|
# 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";
|
|
})
|
|
];
|
|
|
|
buildInputs = [ setuptools_scm pytest ];
|
|
|
|
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;
|
|
};
|
|
}
|