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