Files
nixpkgs/pkgs/development/python-modules/laspy/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01: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 = {
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 = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ matthewcroughan ];
teams = [ lib.teams.geospatial ];
};
}