1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytest
5, six
6, decorator
7, pytestCheckHook
8}:
9
10buildPythonPackage rec {
11 version = "1.1.5";
12 pname = "pytest-relaxed";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "e39a7e5b14e14dfff0de0ad720dfffa740c128d599ab14cfac13f4deb34164a6";
17 };
18
19 # newer decorator versions are incompatible and cause the test suite to fail
20 # but only a few utility functions are used from this package which means it has no actual impact on test execution in paramiko and Fabric
21 postPatch = ''
22 substituteInPlace setup.py \
23 --replace "decorator>=4,<5" "decorator>=4" \
24 --replace "pytest>=3,<5" "pytest>=3"
25 '';
26
27 buildInputs = [ pytest ];
28
29 propagatedBuildInputs = [ six decorator ];
30
31 checkInputs = [ pytestCheckHook ];
32
33 # lots of assertion errors mainly around decorator
34 doCheck = false;
35
36 meta = with lib; {
37 homepage = "https://pytest-relaxed.readthedocs.io/";
38 description = "Relaxed test discovery/organization for pytest";
39 license = licenses.bsd0;
40 maintainers = [ maintainers.costrouc ];
41 # see https://github.com/bitprophet/pytest-relaxed/issues/12
42 broken = true;
43 };
44}