nixpkgs/pkgs/development/python-modules/meliae/default.nix

39 lines
698 B
Nix
Raw Normal View History

2017-10-17 11:22:07 +00:00
{ stdenv
, buildPythonPackage
, fetchPypi
, cython
, isPy3k
, simplejson
}:
buildPythonPackage rec {
pname = "meliae";
version = "0.4.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "16gcgjzcjlbfarwlj18fn089bz34kzfw8varbzxsi9ma0amijrcp";
};
disabled = isPy3k;
doCheck = true;
checkPhase = ''
python setup.py build_ext -i
python run_tests.py
'';
checkInputs = [ simplejson ];
propagatedBuildInputs = [ cython ];
meta = with stdenv.lib; {
description = "Python Memory Usage Analyzer";
homepage = http://launchpad.net/meliae;
license = licenses.gpl3;
maintainers = with maintainers; [ xvapx ];
};
}