diff --git a/flake.nix b/flake.nix index dd15bcd..15ac36c 100644 --- a/flake.nix +++ b/flake.nix @@ -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 { diff --git a/pkgs/development/python-modules/freecad.robossembler/default.nix b/pkgs/development/python-modules/freecad.robossembler/default.nix new file mode 100644 index 0000000..95b721d --- /dev/null +++ b/pkgs/development/python-modules/freecad.robossembler/default.nix @@ -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; [ ]; + }; +} diff --git a/pkgs/development/python-modules/rcg-pipeline/default.nix b/pkgs/development/python-modules/rcg-pipeline/default.nix index b62d747..22c4134 100644 --- a/pkgs/development/python-modules/rcg-pipeline/default.nix +++ b/pkgs/development/python-modules/rcg-pipeline/default.nix @@ -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";