mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-08 22:33:52 +00:00
43 lines
867 B
Nix
43 lines
867 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
cmake,
|
|
ninja,
|
|
pybind11,
|
|
scikit-build-core,
|
|
numpy,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "fpsample";
|
|
version = "1.0.2";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit (finalAttrs) pname version;
|
|
hash = "sha256-XiX5fANBLSQ3Z/ueR/e21sc2x84enVGRiJTj/TJ3SfI=";
|
|
};
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
build-system = [
|
|
cmake
|
|
ninja
|
|
pybind11
|
|
scikit-build-core
|
|
];
|
|
|
|
dependencies = [ numpy ];
|
|
|
|
pythonImportsCheck = [ "fpsample" ];
|
|
|
|
meta = {
|
|
description = "Efficient CPU farthest-point sampling for point clouds";
|
|
homepage = "https://github.com/leonardodalinky/fpsample";
|
|
changelog = "https://github.com/leonardodalinky/fpsample/releases/tag/v${finalAttrs.version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ BatteredBunny ];
|
|
};
|
|
})
|