Skip to content

Commit 1d0e98f

Browse files
authored
ndcurves: init at 1.4.1 (#347703)
* ndcurves: init at 1.4.1 * ndcurves: python-curves is also failing on aarch64-linux
1 parent 8d02c56 commit 1d0e98f

File tree

2 files changed

+75
-0
lines changed

2 files changed

+75
-0
lines changed
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
{
2+
cmake,
3+
doxygen,
4+
fetchFromGitHub,
5+
jrl-cmakemodules,
6+
lib,
7+
pinocchio,
8+
pkg-config,
9+
python3Packages,
10+
pythonSupport ? false,
11+
stdenv,
12+
}:
13+
14+
stdenv.mkDerivation (finalAttrs: {
15+
pname = "ndcurves";
16+
version = "1.4.1";
17+
18+
src = fetchFromGitHub {
19+
owner = "loco-3d";
20+
repo = "ndcurves";
21+
rev = "v${finalAttrs.version}";
22+
hash = "sha256-XJ3VSSGKSJ+x3jc4408PGHTYg3nC7o/EeFnbKBELefs=";
23+
};
24+
25+
outputs = [
26+
"out"
27+
"doc"
28+
];
29+
30+
strictDeps = true;
31+
32+
nativeBuildInputs =
33+
[
34+
cmake
35+
doxygen
36+
pkg-config
37+
]
38+
++ lib.optionals pythonSupport [
39+
python3Packages.python
40+
python3Packages.pythonImportsCheckHook
41+
];
42+
propagatedBuildInputs =
43+
[ jrl-cmakemodules ]
44+
++ lib.optionals pythonSupport [
45+
python3Packages.eigenpy
46+
python3Packages.pinocchio
47+
]
48+
++ lib.optional (!pythonSupport) pinocchio;
49+
50+
cmakeFlags =
51+
[
52+
(lib.cmakeBool "BUILD_PYTHON_INTERFACE" pythonSupport)
53+
(lib.cmakeBool "CURVES_WITH_PINOCCHIO_SUPPORT" true)
54+
]
55+
++ lib.optional stdenv.hostPlatform.isAarch64 (
56+
lib.cmakeFeature "CMAKE_CTEST_ARGUMENTS" "--exclude-regex;'curves_tests|python-curves'"
57+
)
58+
++ lib.optional (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) (
59+
lib.cmakeFeature "CMAKE_CTEST_ARGUMENTS" "--exclude-regex;'test-so3-smooth'"
60+
);
61+
62+
doCheck = true;
63+
64+
pythonImportsCheck = [ "ndcurves" ];
65+
66+
meta = {
67+
description = "Library for creating smooth cubic splines";
68+
homepage = "https://github.com/loco-3d/ndcurves";
69+
license = lib.licenses.bsd2;
70+
maintainers = [ lib.maintainers.nim65s ];
71+
platforms = lib.platforms.unix;
72+
};
73+
})

pkgs/top-level/python-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8962,6 +8962,8 @@ self: super: with self; {
89628962

89638963
natural = callPackage ../development/python-modules/natural { };
89648964

8965+
ndcurves = toPythonModule (pkgs.ndcurves.override { python3Packages = self; pythonSupport = true; });
8966+
89658967
nomadnet = callPackage ../development/python-modules/nomadnet { };
89668968

89678969
noneprompt = callPackage ../development/python-modules/noneprompt { };

0 commit comments

Comments
 (0)