1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-04 19:45:54 +00:00
nixpkgs/pkgs/development/python-modules/testtools/default.nix

45 lines
945 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, pbr
, python_mimeparse
, extras
, lxml
, unittest2
, traceback2
, isPy3k
2017-10-25 19:04:35 +01:00
, fixtures
, pyrsistent
}:
2017-12-30 13:01:50 +00:00
2017-10-25 19:04:35 +01:00
buildPythonPackage rec {
pname = "testtools";
2017-12-30 13:01:50 +00:00
version = "2.3.0";
# Python 2 only judging from SyntaxError
# disabled = isPy3k;
src = fetchPypi {
inherit pname version;
2017-12-30 13:01:50 +00:00
sha256 = "5827ec6cf8233e0f29f51025addd713ca010061204fdea77484a2934690a0559";
};
2017-10-25 19:04:35 +01:00
propagatedBuildInputs = [ pbr python_mimeparse extras lxml unittest2 pyrsistent ];
buildInputs = [ traceback2 ];
# No tests in archive
doCheck = false;
2017-12-30 13:01:50 +00:00
# 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;
};
}