python310Packages.laszip: refactor

- remove unused inputs
- move pybind11 to nativeBuildInputs
- set dontUseCmakeConfigure
- add meta.changelog
This commit is contained in:
natsukium 2023-08-03 22:46:46 +09:00
parent 32f3046ef5
commit cf4c0f090f
No known key found for this signature in database
GPG Key ID: 9EA45A31DB994C53

View File

@ -2,13 +2,10 @@
, buildPythonPackage
, fetchFromGitHub
, scikit-build-core
, distlib
, pytestCheckHook
, pyproject-metadata
, pathspec
, pybind11
, cmake
, LASzip
, pythonOlder
}:
buildPythonPackage rec {
@ -17,32 +14,28 @@ buildPythonPackage rec {
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "tmontaigu";
repo = pname;
rev = version;
sha256 = "sha256-ujKoUm2Btu25T7ZrSGqjRc3NR1qqsQU8OwHQDSx8grY=";
hash = "sha256-ujKoUm2Btu25T7ZrSGqjRc3NR1qqsQU8OwHQDSx8grY=";
};
nativeBuildInputs = [
cmake
pybind11
scikit-build-core
scikit-build-core.optional-dependencies.pyproject
cmake
];
dontUseCmakeConfigure = true;
buildInputs = [
pybind11
LASzip
];
checkInputs = [
pytestCheckHook
];
preBuild = ''
cd ..
'';
# There are no tests
doCheck = false;
@ -51,6 +44,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Unofficial bindings between Python and LASzip made using pybind11";
homepage = "https://github.com/tmontaigu/laszip-python";
changelog = "https://github.com/tmontaigu/laszip-python/blob/${src.rev}/Changelog.md";
license = licenses.mit;
maintainers = with maintainers; [ matthewcroughan ];
};