pythonPackages.pympler: init at 0.4.3

This commit is contained in:
Michiel Leenaars 2016-06-16 16:52:37 +02:00
parent fc71e1e178
commit f6d8566cec

View file

@ -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";