nixpkgs/pkgs/development/python-modules/vmprof/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

59 lines
1007 B
Nix

{
lib,
buildPythonPackage,
pythonOlder,
pythonAtLeast,
fetchFromGitHub,
setuptools,
colorama,
pytz,
requests,
six,
libunwind,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "vmprof";
version = "0.4.17";
pyproject = true;
disabled = pythonOlder "3.6" || pythonAtLeast "3.12";
src = fetchFromGitHub {
owner = "vmprof";
repo = "vmprof-python";
rev = "refs/tags/${version}";
hash = "sha256-7k6mtEdPmp1eNzB4l/k/ExSYtRJVmRxcx50ql8zR36k=";
};
build-system = [ setuptools ];
dependencies = [
colorama
requests
six
pytz
];
buildInputs = [ libunwind ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [
"test_gzip_call"
"test_is_enabled"
"test_get_profile_path"
"test_get_runtime"
];
pythonImportsCheck = [ "vmprof" ];
meta = with lib; {
description = "Vmprof client";
mainProgram = "vmprofshow";
license = licenses.mit;
homepage = "https://vmprof.readthedocs.org/";
};
}