python3Packages.vmprof: fix build

This commit is contained in:
Ryan Hendrickson 2023-05-20 16:15:28 -04:00
parent 95483d41fa
commit fb55842f43

View file

@ -1,6 +1,7 @@
{ stdenv
, lib
, buildPythonPackage
, fetchpatch
, fetchPypi
, colorama
, libunwind
@ -21,6 +22,22 @@ buildPythonPackage rec {
buildInputs = [ libunwind ];
propagatedBuildInputs = [ colorama requests six pytz ];
patches = [
(fetchpatch {
name = "${pname}-python-3.10-compat.patch";
# https://github.com/vmprof/vmprof-python/pull/198
url = "https://github.com/vmprof/vmprof-python/commit/e4e99e5aa677f96d1970d88c8a439f995f429f85.patch";
hash = "sha256-W/c6WtVuKi7xO2sCOr71mrZTWqI86bWg5a0FeDNolh0=";
})
(fetchpatch {
name = "${pname}-python-3.11-compat.patch";
# https://github.com/vmprof/vmprof-python/pull/251 (not yet merged)
url = "https://github.com/matthiasdiener/vmprof-python/compare/a1a1b5264ec0b197444c0053e44f8ae4ffed9353...13c39166363b960017393b614270befe01230be8.patch";
excludes = [ "test_requirements.txt" ];
hash = "sha256-3+0PVdAf83McNd93Q9dD4HLXt39UinVU5BA8jWfT6F4=";
})
];
# No tests included
doCheck = false;
pythonImportsCheck = [ "vmprof" ];