depot/third_party/nixpkgs/pkgs/development/python-modules/testtools/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

44 lines
856 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonAtLeast,
pythonRelaxDepsHook,
# build-system
hatchling,
hatch-vcs,
# dependencies
setuptools,
}:
buildPythonPackage rec {
pname = "testtools";
version = "2.7.1";
pyproject = true;
src = fetchPypi {
inherit pname version;
sha256 = "sha256-323pYBDinuIfY3oUfqvzDVCyXjhB3R1o+T7onOd+Nmw=";
};
nativeBuildInputs = [
hatchling
hatch-vcs
pythonRelaxDepsHook
];
pythonRemoveDeps = [ "fixtures" ];
propagatedBuildInputs = lib.optionals (pythonAtLeast "3.12") [ setuptools ];
# testscenarios has a circular dependency on testtools
doCheck = false;
meta = {
description = "A set of extensions to the Python standard library's unit testing framework";
homepage = "https://pypi.python.org/pypi/testtools";
license = lib.licenses.mit;
};
}