python312Packages.scalene: fix build on Darwin

Co-authored-by: sarahec <sarahec@nextquestion.net>
This commit is contained in:
Sarah Clark
2024-07-11 10:42:17 -07:00
committed by GitHub
parent 9e694d8b87
commit 9a517fb2f2

View File

@@ -1,5 +1,6 @@
{
lib,
stdenv,
buildPythonPackage,
hypothesis,
fetchPypi,
@@ -11,6 +12,7 @@
numpy,
psutil,
pynvml,
nvidia-ml-py,
pytestCheckHook,
pythonOlder,
rich,
@@ -37,9 +39,13 @@ buildPythonPackage rec {
cloudpickle
jinja2
psutil
pynvml
rich
];
pynvml
] ++ lib.optionals stdenv.hostPlatform.isLinux [ nvidia-ml-py ];
pythonRemoveDeps = [
"nvidia-ml-py3"
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ "nvidia-ml-py" ];
__darwinAllowLocalNetworking = true;