2021-05-20 23:08:51 +00:00
|
|
|
{ lib, stdenv, toPythonModule, fetchpatch, cmake, orocos-kdl, python, sip_4 }:
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
toPythonModule (stdenv.mkDerivation {
|
|
|
|
pname = "pykdl";
|
|
|
|
inherit (orocos-kdl) version src;
|
|
|
|
|
2020-12-07 07:45:13 +00:00
|
|
|
patches = [
|
|
|
|
# Fix build with SIP 4.19.23+. Can be removed with version 1.5.
|
|
|
|
# https://github.com/orocos/orocos_kinematics_dynamics/pull/270
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/orocos/orocos_kinematics_dynamics/commit/d8d087ad0e1c41f3489d1a255ebfa27b5695196b.patch";
|
|
|
|
sha256 = "0qyskqxv4a982kidzzyh34xj2iiw791ipbbl29jg4qb4l21xwqlg";
|
|
|
|
stripLen = 1;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
sourceRoot = "source/python_orocos_kdl";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ orocos-kdl ];
|
2021-05-20 23:08:51 +00:00
|
|
|
propagatedBuildInputs = [ python sip_4 ];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
})
|