python3Packages.setuptools-dso: cleanup, skip failing test on darwin

This commit is contained in:
Gaetan Lepage
2025-10-25 20:06:34 +00:00
parent cf3b21e138
commit 93ed0a8ab3
@@ -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 ];
};
}