git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.pympler: init at 0.4.3
commitf6d8566cec1051e01a1fc570d3cae1fcef60c149 authorMichiel Leenaars <ml.software@leenaa.rs> dateThu 16 Jun 2016, 16:52 (10 years ago) parentfc71e1e
1 file changed+25
pkgs/top-level/python-packages.nix+25
pkgs/top-level/python-packages.nix+25
@@ -13176,6 +13176,31 @@ in modules // {
1317613176 };
1317713177 };
1317813178
13179+ pympler = buildPythonPackage rec {
13180+ pname = "Pympler";
13181+ version = "0.4.3";
13182+ name = "${pname}-${version}";
13183+
13184+ src = pkgs.fetchurl {
13185+ url = "mirror://pypi/P/${pname}/${name}.tar.gz";
13186+ sha256 = "0mhyxqlkha98y8mi5zqcjg23r30mgdjdzs05lghbmqfdyvzjh1a3";
13187+ };
13188+
13189+ # Remove test asizeof.flatsize(), broken and can be missed as
13190+ # test is only useful on python 2.5, see https://github.com/pympler/pympler/issues/22
13191+ patchPhase = ''
13192+ substituteInPlace ./test/asizeof/test_asizeof.py --replace "n, e = test_flatsize" "#n, e = test_flatsize"
13193+ substituteInPlace ./test/asizeof/test_asizeof.py --replace "self.assert_(n," "#self.assert_(n,"
13194+ substituteInPlace ./test/asizeof/test_asizeof.py --replace "self.assert_(not e" "#self.assert_(not e"
13195+ '';
13196+
13197+ meta = {
13198+ description = "Tool to measure, monitor and analyze memory behavior";
13199+ homepage = http://pythonhosted.org/Pympler/;
13200+ license = licenses.asl20;
13201+ };
13202+ };
13203+
1317913204 pymysql = buildPythonPackage rec {
1318013205 name = "pymysql-${version}";
1318113206 version = "0.6.6";