mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
4adcaa61cb
- add format - disable on unsupported Python releases
44 lines
806 B
Nix
44 lines
806 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, numpy
|
|
, laszip
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "laspy";
|
|
version = "2.4.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-E8rsxzJcsiQsslOUmE0hs7X3lsiLy0S8LtLTzxuXKsQ=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
numpy
|
|
laszip
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"laspy"
|
|
"laszip"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Interface for reading/modifying/creating .LAS LIDAR files";
|
|
homepage = "https://github.com/laspy/laspy";
|
|
changelog = "https://github.com/laspy/laspy/blob/2.4.1/CHANGELOG.md";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ matthewcroughan ];
|
|
};
|
|
}
|