vprof: init at 0.38

This commit is contained in:
Gaetan Lepage 2023-12-01 11:48:43 +01:00
parent ba7b927fbe
commit ad773d71ed
3 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,42 @@
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, wheel
, psutil
}:
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
];
propagatedBuildInputs = [
psutil
];
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";
};
}

View File

@ -2116,6 +2116,8 @@ with pkgs;
vopono = callPackage ../tools/networking/vopono { };
vprof = with python3Packages; toPythonApplication vprof;
vrc-get = callPackage ../tools/misc/vrc-get {
inherit (darwin.apple_sdk.frameworks) Security;
};

View File

@ -15583,6 +15583,8 @@ self: super: with self; {
vpk = callPackage ../development/python-modules/vpk { };
vprof = callPackage ../development/python-modules/vprof { };
vqgan-jax = callPackage ../development/python-modules/vqgan-jax { };
vsts = callPackage ../development/python-modules/vsts { };