1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pythonAtLeast,
6 pythonRelaxDepsHook,
7
8 # build-system
9 hatchling,
10 hatch-vcs,
11
12 # dependencies
13 setuptools,
14}:
15
16buildPythonPackage rec {
17 pname = "testtools";
18 version = "2.7.1";
19 pyproject = true;
20
21 src = fetchPypi {
22 inherit pname version;
23 sha256 = "sha256-323pYBDinuIfY3oUfqvzDVCyXjhB3R1o+T7onOd+Nmw=";
24 };
25
26 nativeBuildInputs = [
27 hatchling
28 hatch-vcs
29 pythonRelaxDepsHook
30 ];
31
32 pythonRemoveDeps = [ "fixtures" ];
33
34 propagatedBuildInputs = lib.optionals (pythonAtLeast "3.12") [ setuptools ];
35
36 # testscenarios has a circular dependency on testtools
37 doCheck = false;
38
39 meta = {
40 description = "A set of extensions to the Python standard library's unit testing framework";
41 homepage = "https://pypi.python.org/pypi/testtools";
42 license = lib.licenses.mit;
43 };
44}