1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, cython 5, isPy3k 6, simplejson 7}: 8 9buildPythonPackage rec { 10 pname = "meliae"; 11 version = "0.4.0"; 12 name = "${pname}-${version}"; 13 14 src = fetchPypi { 15 inherit pname; 16 # FIXME when updating to the next version: The tarball on pypi is called 17 # "meliae-0.4.0.tar.gz" while the version within that tarball is 18 # "0.4.0.final.0". 19 version = "0.4.0"; 20 sha256 = "976519ab02aaa6a8fb5f596dc4dd9f64fc9510b00e054979566e51c9be7cec99"; 21 }; 22 23 disabled = isPy3k; 24 25 doCheck = true; 26 27 checkPhase = '' 28 python setup.py build_ext -i 29 python run_tests.py 30 ''; 31 32 checkInputs = [ simplejson ]; 33 34 propagatedBuildInputs = [ cython ]; 35 36 meta = with stdenv.lib; { 37 description = "Python Memory Usage Analyzer"; 38 homepage = http://launchpad.net/meliae; 39 license = licenses.gpl3; 40 maintainers = with maintainers; [ xvapx ]; 41 }; 42}