python3Packages.ndcurves: depend on pkgs.ndcurves

This commit is contained in:
Guilhem Saurel
2025-10-15 20:29:17 +02:00
parent e5179b5531
commit 43f736f7ba
2 changed files with 38 additions and 6 deletions
@@ -0,0 +1,37 @@
{
lib,
toPythonModule,
pythonImportsCheckHook,
ndcurves,
boost,
pinocchio,
python,
}:
toPythonModule (
ndcurves.overrideAttrs (super: {
pname = "py-${super.pname}";
cmakeFlags = super.cmakeFlags ++ [
(lib.cmakeBool "BUILD_PYTHON_INTERFACE" true)
(lib.cmakeBool "BUILD_STANDALONE_PYTHON_INTERFACE" true)
];
# those are used by CMake at configure/build time
nativeBuildInputs = super.nativeBuildInputs ++ [
python
];
propagatedBuildInputs = [
boost
pinocchio
ndcurves
]
++ super.propagatedBuildInputs;
nativeCheckInputs = [
pythonImportsCheckHook
];
pythonImportsCheck = [
"ndcurves"
];
})
)
+1 -6
View File
@@ -10361,12 +10361,7 @@ self: super: with self; {
nclib = callPackage ../development/python-modules/nclib { };
ndcurves = toPythonModule (
pkgs.ndcurves.override {
python3Packages = self;
pythonSupport = true;
}
);
ndcurves = callPackage ../development/python-modules/ndcurves { inherit (pkgs) ndcurves; };
ndeflib = callPackage ../development/python-modules/ndeflib { };