1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchPypi,
6 setuptools-scm,
7 toml,
8 jaraco-functools,
9 jaraco-context,
10 more-itertools,
11 jaraco-collections,
12 pytestCheckHook,
13}:
14
15buildPythonPackage rec {
16 pname = "jaraco-test";
17 version = "5.4.0";
18 pyproject = true;
19
20 disabled = pythonOlder "3.8";
21
22 src = fetchPypi {
23 pname = "jaraco.test";
24 inherit version;
25 hash = "sha256-29NDh4dYrcVER9YRXEYXia2zH8QHOyEpUCQwk7oxfsI=";
26 };
27
28 build-system = [ setuptools-scm ];
29
30 dependencies = [
31 toml
32 jaraco-functools
33 jaraco-context
34 more-itertools
35 jaraco-collections
36 ];
37
38 nativeCheckInputs = [ pytestCheckHook ];
39
40 disabledTestPaths = [
41 # https://github.com/jaraco/jaraco.test/issues/6
42 "jaraco/test/cpython.py"
43 ];
44
45 pythonImportsCheck = [ "jaraco.test" ];
46
47 meta = with lib; {
48 description = "Testing support by jaraco";
49 homepage = "https://github.com/jaraco/jaraco.test";
50 changelog = "https://github.com/jaraco/jaraco.test/blob/v${version}/CHANGES.rst";
51 license = licenses.mit;
52 maintainers = with maintainers; [ dotlambda ];
53 };
54}