1{ lib
2, buildPythonPackage
3, fetchPypi
4, numpy
5, laszip
6, setuptools
7, pytestCheckHook
8, pythonOlder
9}:
10
11buildPythonPackage rec {
12 pname = "laspy";
13 version = "2.5.1";
14 format = "pyproject";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-uqPJxswVVjbxYRSREfnPwkPb0U9synKclLNWsxxmjy4=";
21 };
22
23 nativeBuildInputs = [
24 setuptools
25 ];
26
27 propagatedBuildInputs = [
28 numpy
29 laszip
30 ];
31
32 nativeCheckInputs = [
33 pytestCheckHook
34 ];
35
36 pythonImportsCheck = [
37 "laspy"
38 "laszip"
39 ];
40
41 meta = with lib; {
42 description = "Interface for reading/modifying/creating .LAS LIDAR files";
43 homepage = "https://github.com/laspy/laspy";
44 changelog = "https://github.com/laspy/laspy/blob/${version}/CHANGELOG.md";
45 license = licenses.bsd2;
46 maintainers = with maintainers; [ matthewcroughan ];
47 };
48}