nixpkgs-suyu/pkgs/development/python-modules/laspy/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

49 lines
901 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, numpy
, laszip
, setuptools
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "laspy";
version = "2.5.3";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-StaYkUNY6loJbaUuabzszTINnd+zZ0gKXCteCG24Erc=";
};
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 ];
};
}