Unverified Commit a8c9f21e authored by Ivan Mincik's avatar Ivan Mincik Committed by GitHub
Browse files

python3Packages.pysfcgal: init at 2.2.0 (#488613)

parents 79ddcb1b 93afc510
Loading
Loading
Loading
Loading
+71 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitLab,
  pytestCheckHook,

  cffi,
  icontract,
  setuptools,
  sfcgal,
  wheel,
}:

buildPythonPackage (finalAttrs: {
  pname = "pysfcgal";
  version = "2.2.0";
  pyproject = true;

  src = fetchFromGitLab {
    owner = "sfcgal";
    repo = "pysfcgal";
    tag = "v${finalAttrs.version}";
    hash = "sha256-/G6yC7u2CYM7D9xO2IOB8+AjWc4ErzTIdvHmwGRxXBc=";
  };

  buildInputs = [
    sfcgal
  ];

  build-system = [
    setuptools
    wheel
  ];

  dependencies = [
    cffi
  ];

  pythonImportsCheck = [
    "pysfcgal"
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  checkInputs = [
    icontract
  ];

  # remove src module, so tests use the installed module instead
  preCheck = ''
    rm -rf pysfcgal
  '';

  disabledTests = [
    # this test is failing due to mismatched output
    "test_wrap_geom_segfault"
  ];

  meta = {
    description = "Python wrapper for SFCGAL";
    homepage = "https://gitlab.com/sfcgal/pysfcgal";
    changelog = "https://gitlab.com/sfcgal/pysfcgal/-/blob/${finalAttrs.src.rev}/CHANGELOG.md";
    license = lib.licenses.gpl3Plus;
    teams = with lib.teams; [
      geospatial
      ngi
    ];
  };
})
+2 −0
Original line number Diff line number Diff line
@@ -14683,6 +14683,8 @@ self: super: with self; {
  pyseventeentrack = callPackage ../development/python-modules/pyseventeentrack { };
  pysfcgal = callPackage ../development/python-modules/pysfcgal { };
  pysftp = callPackage ../development/python-modules/pysftp { };
  pyshark = callPackage ../development/python-modules/pyshark { };