nixpkgs/pkgs/development/python-modules/laspy/default.nix
2024-06-29 11:01:56 +00:00

47 lines
899 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
numpy,
laszip,
setuptools,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "laspy";
version = "2.5.4";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-7r2/M3mvvAsk5+SBL6xWe/+IDR6FH3AXXSI3Wq7N9+E=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
numpy
laszip
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [
"laspy"
"laszip"
];
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 ];
};
}