pythonPackages.pympler: refactor move to python-modules
This commit is contained in:
parent
d954c8ff82
commit
1170733244
31
pkgs/development/python-modules/pympler/default.nix
Normal file
31
pkgs/development/python-modules/pympler/default.nix
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
{ stdenv
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "Pympler";
|
||||||
|
version = "0.4.3";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
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"
|
||||||
|
'';
|
||||||
|
|
||||||
|
doCheck = stdenv.hostPlatform.isLinux;
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Tool to measure, monitor and analyze memory behavior";
|
||||||
|
homepage = https://pythonhosted.org/Pympler/;
|
||||||
|
license = licenses.asl20;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -2885,32 +2885,7 @@ in {
|
|||||||
|
|
||||||
pymc3 = callPackage ../development/python-modules/pymc3 { };
|
pymc3 = callPackage ../development/python-modules/pymc3 { };
|
||||||
|
|
||||||
pympler = buildPythonPackage rec {
|
pympler = callPackage ../development/python-modules/pympler { };
|
||||||
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"
|
|
||||||
'';
|
|
||||||
|
|
||||||
doCheck = stdenv.hostPlatform.isLinux;
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Tool to measure, monitor and analyze memory behavior";
|
|
||||||
homepage = https://pythonhosted.org/Pympler/;
|
|
||||||
license = licenses.asl20;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
pymysqlsa = self.buildPythonPackage rec {
|
pymysqlsa = self.buildPythonPackage rec {
|
||||||
name = "pymysqlsa-${version}";
|
name = "pymysqlsa-${version}";
|
||||||
|
Loading…
Reference in New Issue
Block a user