at master 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 pythonAtLeast, 6 fetchFromGitHub, 7 setuptools, 8 colorama, 9 pytz, 10 requests, 11 six, 12 libunwind, 13 pytestCheckHook, 14}: 15 16buildPythonPackage rec { 17 pname = "vmprof"; 18 version = "0.4.17"; 19 pyproject = true; 20 21 disabled = pythonOlder "3.6" || pythonAtLeast "3.12"; 22 23 src = fetchFromGitHub { 24 owner = "vmprof"; 25 repo = "vmprof-python"; 26 rev = "refs/tags/${version}"; 27 hash = "sha256-7k6mtEdPmp1eNzB4l/k/ExSYtRJVmRxcx50ql8zR36k="; 28 }; 29 30 build-system = [ setuptools ]; 31 32 dependencies = [ 33 colorama 34 requests 35 six 36 pytz 37 ]; 38 39 buildInputs = [ libunwind ]; 40 41 nativeCheckInputs = [ pytestCheckHook ]; 42 43 disabledTests = [ 44 "test_gzip_call" 45 "test_is_enabled" 46 "test_get_profile_path" 47 "test_get_runtime" 48 ]; 49 50 pythonImportsCheck = [ "vmprof" ]; 51 52 meta = with lib; { 53 description = "Vmprof client"; 54 mainProgram = "vmprofshow"; 55 license = licenses.mit; 56 homepage = "https://vmprof.readthedocs.org/"; 57 }; 58}