2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
setuptools,
|
|
|
|
wheel,
|
|
|
|
psutil,
|
2024-01-02 11:29:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "vprof";
|
|
|
|
version = "0.38";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
# We use the Pypi source rather than the GitHub ones because the former include the javascript
|
|
|
|
# dependency for the UI.
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
hash = "sha256-fxAAkS7rekUMfJTTzJZzmvRa0P8B1avMCwmhddQP+ts=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
wheel
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ psutil ];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "vprof" ];
|
|
|
|
|
|
|
|
# The tests are not included in the Pypi sources
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Visual profiler for Python";
|
|
|
|
homepage = "https://github.com/nvdv/vprof";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ GaetanLepage ];
|
|
|
|
mainProgram = "vprof";
|
|
|
|
};
|
|
|
|
}
|