depot/third_party/nixpkgs/pkgs/development/python-modules/pykdl/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

26 lines
743 B
Nix

{ lib, stdenv, toPythonModule, cmake, orocos-kdl, eigen, python }:
toPythonModule (stdenv.mkDerivation {
pname = "pykdl";
inherit (orocos-kdl) version src;
sourceRoot = "${orocos-kdl.src.name}/python_orocos_kdl";
# Fix hardcoded installation path
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace dist-packages site-packages
'';
nativeBuildInputs = [ cmake ];
buildInputs = [ orocos-kdl eigen ];
propagatedBuildInputs = [ python ];
meta = with lib; {
description = "Kinematics and Dynamics Library (Python bindings)";
homepage = "https://www.orocos.org/kdl.html";
license = licenses.lgpl21Only;
maintainers = with maintainers; [ lopsided98 ];
platforms = platforms.all;
};
})