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