From f6d8566cec1051e01a1fc570d3cae1fcef60c149 Mon Sep 17 00:00:00 2001 From: Michiel Leenaars Date: Thu, 16 Jun 2016 16:52:37 +0200 Subject: [PATCH] pythonPackages.pympler: init at 0.4.3 --- pkgs/top-level/python-packages.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 429dbe1606e..5900ea7ee52 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -13176,6 +13176,31 @@ in modules // { }; }; + pympler = buildPythonPackage rec { + pname = "Pympler"; + version = "0.4.3"; + name = "${pname}-${version}"; + + src = pkgs.fetchurl { + url = "mirror://pypi/P/${pname}/${name}.tar.gz"; + sha256 = "0mhyxqlkha98y8mi5zqcjg23r30mgdjdzs05lghbmqfdyvzjh1a3"; + }; + + # Remove test asizeof.flatsize(), broken and can be missed as + # test is only useful on python 2.5, see https://github.com/pympler/pympler/issues/22 + patchPhase = '' + substituteInPlace ./test/asizeof/test_asizeof.py --replace "n, e = test_flatsize" "#n, e = test_flatsize" + substituteInPlace ./test/asizeof/test_asizeof.py --replace "self.assert_(n," "#self.assert_(n," + substituteInPlace ./test/asizeof/test_asizeof.py --replace "self.assert_(not e" "#self.assert_(not e" + ''; + + meta = { + description = "Tool to measure, monitor and analyze memory behavior"; + homepage = http://pythonhosted.org/Pympler/; + license = licenses.asl20; + }; + }; + pymysql = buildPythonPackage rec { name = "pymysql-${version}"; version = "0.6.6";