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