From f13ae2b20bd633e9d844e7efd2b99ab576a605d8 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Thu, 26 Feb 2026 00:14:29 +0000 Subject: [PATCH] python3Packages.laszip: 0.2.3 -> 0.3.0 Diff: https://github.com/tmontaigu/laszip-python/compare/0.2.3...0.3.0 Changelog: https://github.com/tmontaigu/laszip-python/blob/0.3.0/Changelog.md --- .../python-modules/laszip/default.nix | 35 +++++++------------ 1 file changed, 12 insertions(+), 23 deletions(-) diff --git a/pkgs/development/python-modules/laszip/default.nix b/pkgs/development/python-modules/laszip/default.nix index fa9a57c1d9db..50bc114b7f7e 100644 --- a/pkgs/development/python-modules/laszip/default.nix +++ b/pkgs/development/python-modules/laszip/default.nix @@ -1,42 +1,31 @@ { lib, - stdenv, buildPythonPackage, fetchFromGitHub, - fetchpatch, + + # build-system scikit-build-core, pybind11, cmake, - laszip, ninja, + + # buildInputs + laszip, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "laszip-python"; - version = "0.2.3"; + version = "0.3.0"; pyproject = true; src = fetchFromGitHub { owner = "tmontaigu"; repo = "laszip-python"; - rev = version; - hash = "sha256-MiPzL9TDCf1xnCv7apwdfcpkFnBRi4PO/atTQxqL8cw="; + tag = finalAttrs.version; + hash = "sha256-fg9Joe5iDNT4w2j+zQuQIoxyAYpCAgLwhuqsBsJn6lU="; }; - patches = [ - # Removes depending on the cmake and ninja PyPI packages, since we can pass - # in the tools directly, and scikit-build-core can use them. - # https://github.com/tmontaigu/laszip-python/pull/9 - (fetchpatch { - name = "remove-cmake-ninja-pypi-dependencies.patch"; - url = "https://github.com/tmontaigu/laszip-python/commit/17e648d04945fa2d095d6d74d58c790a4fcde84a.patch"; - hash = "sha256-k58sS1RqVzT1WPh2OVt/D4Y045ODtj6U3bUjegd44VY="; - }) - ]; - - env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU "-std=c++17"; - - nativeBuildInputs = [ + build-system = [ cmake ninja pybind11 @@ -55,8 +44,8 @@ buildPythonPackage rec { meta = { 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"; + changelog = "https://github.com/tmontaigu/laszip-python/blob/${finalAttrs.src.tag}/Changelog.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ matthewcroughan ]; }; -} +})