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