14 buildPythonPackage rec {
15 pname = "laszip-python";
19 disabled = pythonOlder "3.7";
21 src = fetchFromGitHub {
25 hash = "sha256-MiPzL9TDCf1xnCv7apwdfcpkFnBRi4PO/atTQxqL8cw=";
29 # Removes depending on the cmake and ninja PyPI packages, since we can pass
30 # in the tools directly, and scikit-build-core can use them.
31 # https://github.com/tmontaigu/laszip-python/pull/9
33 name = "remove-cmake-ninja-pypi-dependencies.patch";
34 url = "https://github.com/tmontaigu/laszip-python/commit/17e648d04945fa2d095d6d74d58c790a4fcde84a.patch";
35 hash = "sha256-k58sS1RqVzT1WPh2OVt/D4Y045ODtj6U3bUjegd44VY=";
39 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU "-std=c++17";
46 ] ++ scikit-build-core.optional-dependencies.pyproject;
48 dontUseCmakeConfigure = true;
57 pythonImportsCheck = [ "laszip" ];
60 description = "Unofficial bindings between Python and LASzip made using pybind11";
61 homepage = "https://github.com/tmontaigu/laszip-python";
62 changelog = "https://github.com/tmontaigu/laszip-python/blob/${src.rev}/Changelog.md";
63 license = licenses.mit;
64 maintainers = with maintainers; [ matthewcroughan ];