Skip to content
Snippets Groups Projects
default.nix 1.04 KiB
Newer Older
Guilhem Saurel's avatar
Guilhem Saurel committed
{
  lib,
  cmake,
  cddlib,
  clp,
  jrl-cmakemodules,
  python3Packages,
  qpoases,
}:

python3Packages.buildPythonPackage {
  pname = "hpp-centroidal-dynamics";
  version = "5.0.0";
  pyproject = false;

  src = lib.fileset.toSource {
    root = ./.;
    fileset = lib.fileset.unions [
      ./CMakeLists.txt
      ./include
      ./package.xml
      ./python
      ./src
      ./test
      ./test_data
    ];
  };

  strictDeps = true;

  nativeBuildInputs = [ cmake ];
  buildInputs = [
    cddlib
    clp
    qpoases
  ];
  propagatedBuildInputs = [
Guilhem Saurel's avatar
Guilhem Saurel committed
    jrl-cmakemodules
Guilhem Saurel's avatar
Guilhem Saurel committed
    python3Packages.boost
    python3Packages.eigenpy
  ];

  cmakeFlags = [ (lib.cmakeBool "BUILD_WITH_CLP" true) ];

  doCheck = true;

  pythonImportsCheck = [ "hpp_centroidal_dynamics" ];

  meta = {
    description = "Utility classes to check the (robust) equilibrium of a system in contact with the environment.";
    homepage = "https://github.com/humanoid-path-planner/hpp-centroidal-dynamics";
    license = lib.licenses.bsd2;
    maintainers = [ lib.maintainers.nim65s ];
  };
}