python312Packages.scalene: fix build on Darwin
Co-authored-by: sarahec <sarahec@nextquestion.net>
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildPythonPackage,
|
buildPythonPackage,
|
||||||
hypothesis,
|
hypothesis,
|
||||||
fetchPypi,
|
fetchPypi,
|
||||||
@@ -11,6 +12,7 @@
|
|||||||
numpy,
|
numpy,
|
||||||
psutil,
|
psutil,
|
||||||
pynvml,
|
pynvml,
|
||||||
|
nvidia-ml-py,
|
||||||
pytestCheckHook,
|
pytestCheckHook,
|
||||||
pythonOlder,
|
pythonOlder,
|
||||||
rich,
|
rich,
|
||||||
@@ -37,9 +39,13 @@ buildPythonPackage rec {
|
|||||||
cloudpickle
|
cloudpickle
|
||||||
jinja2
|
jinja2
|
||||||
psutil
|
psutil
|
||||||
pynvml
|
|
||||||
rich
|
rich
|
||||||
];
|
pynvml
|
||||||
|
] ++ lib.optionals stdenv.hostPlatform.isLinux [ nvidia-ml-py ];
|
||||||
|
|
||||||
|
pythonRemoveDeps = [
|
||||||
|
"nvidia-ml-py3"
|
||||||
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ "nvidia-ml-py" ];
|
||||||
|
|
||||||
__darwinAllowLocalNetworking = true;
|
__darwinAllowLocalNetworking = true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user