Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

53 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
numpy,
laszip,
lazrs,
setuptools,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "laspy";
version = "2.6.1";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-zpy5oYUosqK5hVg99ApN6mjN2nmV5H5LALbUjfDojao=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
numpy
laszip
lazrs # much faster laz reading, see https://laspy.readthedocs.io/en/latest/installation.html#laz-support
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [
"laspy"
# `laspy` supports multiple backends and detects them dynamically.
# We check their importability to make sure they are all working.
"laszip"
"lazrs"
];
meta = with lib; {
description = "Interface for reading/modifying/creating .LAS LIDAR files";
mainProgram = "laspy";
homepage = "https://github.com/laspy/laspy";
changelog = "https://github.com/laspy/laspy/blob/${version}/CHANGELOG.md";
license = licenses.bsd2;
maintainers = with maintainers; [ matthewcroughan ];
teams = [ teams.geospatial ];
};
}