python.pkgs.testtools: move expression
This commit is contained in:
parent
bef9aa432c
commit
ae6c8be791
38
pkgs/development/python-modules/testtools/default.nix
Normal file
38
pkgs/development/python-modules/testtools/default.nix
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, pbr
|
||||||
|
, python_mimeparse
|
||||||
|
, extras
|
||||||
|
, lxml
|
||||||
|
, unittest2
|
||||||
|
, traceback2
|
||||||
|
, isPy3k
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "testtools";
|
||||||
|
version = "1.8.0";
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
|
# Python 2 only judging from SyntaxError
|
||||||
|
# disabled = isPy3k;
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "15yxz8d70iy1b1x6gd7spvblq0mjxjardl4vnaqasxafzc069zca";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ pbr python_mimeparse extras lxml unittest2 ];
|
||||||
|
buildInputs = [ traceback2 ];
|
||||||
|
patches = [ ./testtools_support_unittest2.patch ];
|
||||||
|
|
||||||
|
# No tests in archive
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "A set of extensions to the Python standard library's unit testing framework";
|
||||||
|
homepage = http://pypi.python.org/pypi/testtools;
|
||||||
|
license = lib.licenses.mit;
|
||||||
|
};
|
||||||
|
}
|
@ -22312,28 +22312,7 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
testtools = buildPythonPackage rec {
|
testtools = callPackage ../development/python-modules/testtools { };
|
||||||
name = "testtools-${version}";
|
|
||||||
version = "1.8.0";
|
|
||||||
|
|
||||||
# Python 2 only judging from SyntaxError
|
|
||||||
disabled = isPy3k;
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/t/testtools/${name}.tar.gz";
|
|
||||||
sha256 = "15yxz8d70iy1b1x6gd7spvblq0mjxjardl4vnaqasxafzc069zca";
|
|
||||||
};
|
|
||||||
|
|
||||||
propagatedBuildInputs = with self; [ pbr python_mimeparse extras lxml unittest2 ];
|
|
||||||
buildInputs = with self; [ traceback2 ];
|
|
||||||
patches = [ ../development/python-modules/testtools_support_unittest2.patch ];
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "A set of extensions to the Python standard library's unit testing framework";
|
|
||||||
homepage = http://pypi.python.org/pypi/testtools;
|
|
||||||
license = licenses.mit;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
traitlets = buildPythonPackage rec {
|
traitlets = buildPythonPackage rec {
|
||||||
pname = "traitlets";
|
pname = "traitlets";
|
||||||
|
Loading…
Reference in New Issue
Block a user