1{
2 lib,
3 buildPythonPackage,
4 decorator,
5 fetchPypi,
6 invoke,
7 pytest,
8 pytestCheckHook,
9 pythonOlder,
10}:
11
12buildPythonPackage rec {
13 pname = "pytest-relaxed";
14 version = "2.0.2";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.6";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-lW6gKOww27+2gN2Oe0p/uPgKI5WV6Ius4Bi/LA1xgkg=";
22 };
23
24 patches = [
25 # https://github.com/bitprophet/pytest-relaxed/issues/28
26 # https://github.com/bitprophet/pytest-relaxed/pull/29
27 ./fix-oldstyle-hookimpl-setup.patch
28 ];
29
30 buildInputs = [ pytest ];
31
32 propagatedBuildInputs = [ decorator ];
33
34 nativeCheckInputs = [
35 invoke
36 pytestCheckHook
37 ];
38
39 enabledTestPaths = [ "tests" ];
40
41 disabledTests = [
42 "test_skips_pytest_fixtures"
43 ];
44
45 pythonImportsCheck = [ "pytest_relaxed" ];
46
47 meta = with lib; {
48 homepage = "https://pytest-relaxed.readthedocs.io/";
49 description = "Relaxed test discovery/organization for pytest";
50 changelog = "https://github.com/bitprophet/pytest-relaxed/blob/${version}/docs/changelog.rst";
51 license = licenses.bsd0;
52 maintainers = [ ];
53 };
54}