diff --git a/pkgs/development/python-modules/setuptools-dso/default.nix b/pkgs/development/python-modules/setuptools-dso/default.nix index 62244825237e..5c33d1fd89b8 100644 --- a/pkgs/development/python-modules/setuptools-dso/default.nix +++ b/pkgs/development/python-modules/setuptools-dso/default.nix @@ -1,10 +1,15 @@ { lib, + stdenv, buildPythonPackage, - fetchPypi, + fetchFromGitHub, + + # build-system + setuptools, + + # tests nose2, pytestCheckHook, - setuptools, }: buildPythonPackage rec { @@ -12,10 +17,11 @@ buildPythonPackage rec { version = "2.12.2"; pyproject = true; - src = fetchPypi { - pname = "setuptools_dso"; - inherit version; - hash = "sha256-evt2+T0Tzp2iRQJnbY8tTbw9o1xiRflfJ9+fp0RQeaQ="; + src = fetchFromGitHub { + owner = "epics-base"; + repo = "setuptools_dso"; + tag = version; + hash = "sha256-YYm3mTA443vcD/4vHa7EgPzvDDzBic64NWWJDQYQHKs="; }; build-system = [ setuptools ]; @@ -25,10 +31,16 @@ buildPythonPackage rec { pytestCheckHook ]; - meta = with lib; { + disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ + # distutils.compilers.C.errors.CompileError: command '/nix/store/...-clang-wrapper-21.1.2/bin/clang' failed with exit code 1 + # fatal error: 'string' file not found + "test_cxx" + ]; + + meta = { description = "Setuptools extension for building non-Python Dynamic Shared Objects"; homepage = "https://github.com/mdavidsaver/setuptools_dso"; - license = licenses.bsd3; - maintainers = with maintainers; [ marius851000 ]; + license = lib.licenses.bsd3; + maintainers = with lib.maintainers; [ marius851000 ]; }; }