FreeCAD Robossembler Workbench as python module

This commit is contained in:
Igor Brylyov 2024-04-19 19:42:36 +03:00
parent f5c111bae7
commit 47eeaa6067
3 changed files with 42 additions and 4 deletions

View file

@ -133,6 +133,7 @@
megapose6d = pkgs.python3Packages.callPackage ./pkgs/development/python-modules/megapose6d { inherit webdataset; };
spatialmath = pkgs.python3Packages.callPackage ./pkgs/development/python-modules/spatialmath { inherit ansitable; };
rcg-pipeline = pkgs.python3Packages.callPackage ./pkgs/development/python-modules/rcg-pipeline { inherit bpy-wheel; };
rbs-workbench = pkgs.python3Packages.callPackage ./pkgs/development/python-modules/freecad.robossembler { };
in
{
inherit pkgs;
@ -215,6 +216,7 @@
scipy
spatialmath
rcg-pipeline
rbs-workbench
];
in
pkgs.mkShell {

View file

@ -0,0 +1,38 @@
{ buildPythonPackage
, fetchgit
, python3Packages
, lib
, autoPatchelfHook
, pythonImportsCheckHook
, config
, setuptools
, ... }:
buildPythonPackage rec {
name = "rbs-workbench";
version = "1.0.0";
format = "setuptools";
src = fetchgit {
url = "https://gitlab.com/robossembler/framework";
hash = "sha256-N9xFVU4+GbuRR5saMkK7GjKPqKjk2LjcTFWqVhhJ0bs=";
rev = "946e83fd159f9ed234b70923df657bc5120cc62f";
};
sourceRoot = "${src.name}/freecad_workbench";
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
];
pythonImportsCheck = [ "freecad.robossembler" ];
meta = with lib; {
description = "Robossembler CG Pipeline Python Module";
homepage = "https://gitlab.com/robossembler/framework/rcg_pipeline";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}

View file

@ -16,12 +16,10 @@ buildPythonPackage rec {
version = "1.0.0";
format = "pyproject";
# src = /home/movefasta/Documents/robossembler/framework;
src = fetchgit {
url = "https://gitlab.com/robossembler/framework";
hash = "sha256-iLPphGbIGf7IRdedBSC2yJ2M3ttsHATvtOLot/04AZU=";
rev = "8268db0dec793bfa42d4fcba24c7d442938b7a25";
hash = "sha256-N9xFVU4+GbuRR5saMkK7GjKPqKjk2LjcTFWqVhhJ0bs=";
rev = "946e83fd159f9ed234b70923df657bc5120cc62f";
};
sourceRoot = "${src.name}/rcg_pipeline";