diff --git a/pkgs/development/python-modules/alphashape/default.nix b/pkgs/development/python-modules/alphashape/default.nix new file mode 100644 index 000000000000..cd0c7843f15f --- /dev/null +++ b/pkgs/development/python-modules/alphashape/default.nix @@ -0,0 +1,65 @@ +{ + lib, + buildPythonPackage, + click, + click-log, + fetchFromGitHub, + geopandas, + networkx, + numpy, + pytestCheckHook, + rtree, + scipy, + setuptools, + shapely, + trimesh, +}: + +buildPythonPackage (finalAttrs: { + pname = "alphashape"; + version = "1.3.1"; + pyproject = true; + + __structuredAttrs = true; + + src = fetchFromGitHub { + owner = "bellockk"; + repo = "alphashape"; + tag = "v${finalAttrs.version}"; + hash = "sha256-T2wyU6fpiYRA1+9n//5EtOLhO1fzccQsie+gQj729Vs="; + }; + + build-system = [ setuptools ]; + + dependencies = [ + click + click-log + shapely + numpy + trimesh + networkx + rtree + scipy + ]; + + nativeCheckInputs = [ + geopandas + pytestCheckHook + ]; + + disabledTests = [ + # TypeError + "test_given_a_four_point_polygon_with_no_alpha_return_input" + "test_given_a_point_return_a_point" + ]; + + pythonImportsCheck = [ "alphashape" ]; + + meta = with lib; { + description = "Toolbox for generating n-dimensional alpha shapes"; + homepage = "https://github.com/bellockk/alphashape"; + changelog = "https://github.com/bellockk/alphashape/releases/tag/${finalAttrs.src.tag}"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +}) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 467fcdfb9c96..1a2f579f4ce4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -780,6 +780,8 @@ self: super: with self; { alphaessopenapi = callPackage ../development/python-modules/alphaessopenapi { }; + alphashape = callPackage ../development/python-modules/alphashape { }; + altair = callPackage ../development/python-modules/altair { }; altcha = callPackage ../development/python-modules/altcha { };