mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
python310Packages.laszip: refactor
- remove unused inputs - move pybind11 to nativeBuildInputs - set dontUseCmakeConfigure - add meta.changelog
This commit is contained in:
parent
32f3046ef5
commit
cf4c0f090f
@ -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 ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user