From 0c5c1df1840d39e6e5ce7821155a26820073cfd1 Mon Sep 17 00:00:00 2001 From: natsukium Date: Thu, 3 Aug 2023 22:56:50 +0900 Subject: [PATCH] python310Packages.laspy: refactor - add setuptools to nativeBuildInputs - replace checkInputs with nativeCheckInputs - fix the changelog url --- pkgs/development/python-modules/laspy/default.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/laspy/default.nix b/pkgs/development/python-modules/laspy/default.nix index 43366105532a..e5b0ea1457a9 100644 --- a/pkgs/development/python-modules/laspy/default.nix +++ b/pkgs/development/python-modules/laspy/default.nix @@ -3,6 +3,7 @@ , fetchPypi , numpy , laszip +, setuptools , pytestCheckHook , pythonOlder }: @@ -10,7 +11,7 @@ buildPythonPackage rec { pname = "laspy"; version = "2.4.1"; - format = "setuptools"; + format = "pyproject"; disabled = pythonOlder "3.7"; @@ -19,12 +20,16 @@ buildPythonPackage rec { hash = "sha256-E8rsxzJcsiQsslOUmE0hs7X3lsiLy0S8LtLTzxuXKsQ="; }; + nativeBuildInputs = [ + setuptools + ]; + propagatedBuildInputs = [ numpy laszip ]; - checkInputs = [ + nativeCheckInputs = [ pytestCheckHook ]; @@ -36,7 +41,7 @@ buildPythonPackage rec { meta = with lib; { description = "Interface for reading/modifying/creating .LAS LIDAR files"; homepage = "https://github.com/laspy/laspy"; - changelog = "https://github.com/laspy/laspy/blob/2.4.1/CHANGELOG.md"; + changelog = "https://github.com/laspy/laspy/blob/${version}/CHANGELOG.md"; license = licenses.bsd2; maintainers = with maintainers; [ matthewcroughan ]; };