1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-24 19:08:30 +00:00
nixpkgs/pkgs/development/python-modules/testtools/default.nix
2020-06-11 10:00:22 +02:00

39 lines
907 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pbr
, python_mimeparse
, extras
, unittest2
, traceback2
, testscenarios
}:
buildPythonPackage rec {
pname = "testtools";
version = "2.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "64c974a6cca4385d05f4bbfa2deca1c39ce88ede31c3448bee86a7259a9a61c8";
};
propagatedBuildInputs = [ pbr python_mimeparse extras unittest2 ];
buildInputs = [ traceback2 ];
# testscenarios has a circular dependency on testtools
doCheck = false;
checkInputs = [ testscenarios ];
# testtools 2.0.0 and up has a circular run-time dependency on futures
postPatch = ''
substituteInPlace requirements.txt --replace "fixtures>=1.3.0" ""
'';
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;
};
}