Files
nixpkgs/pkgs/development/python-modules/laszip/default.nix
T

52 lines
1019 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
scikit-build-core,
pybind11,
cmake,
ninja,
# buildInputs
laszip,
}:
buildPythonPackage (finalAttrs: {
pname = "laszip-python";
version = "0.3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "tmontaigu";
repo = "laszip-python";
tag = finalAttrs.version;
hash = "sha256-fg9Joe5iDNT4w2j+zQuQIoxyAYpCAgLwhuqsBsJn6lU=";
};
build-system = [
cmake
ninja
pybind11
scikit-build-core
];
dontUseCmakeConfigure = true;
buildInputs = [ laszip ];
# There are no tests
doCheck = false;
pythonImportsCheck = [ "laszip" ];
meta = {
description = "Unofficial bindings between Python and LASzip made using pybind11";
homepage = "https://github.com/tmontaigu/laszip-python";
changelog = "https://github.com/tmontaigu/laszip-python/blob/${finalAttrs.src.tag}/Changelog.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ matthewcroughan ];
};
})