From e47e0b8a148ca2a822b0d2bef23493bdefd067bd Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 25 Aug 2025 16:36:13 +0200 Subject: [PATCH] python313Packages.liccheck: modernize --- pkgs/development/python-modules/liccheck/default.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/liccheck/default.nix b/pkgs/development/python-modules/liccheck/default.nix index b36722a88e7e..4be930d0dcb3 100644 --- a/pkgs/development/python-modules/liccheck/default.nix +++ b/pkgs/development/python-modules/liccheck/default.nix @@ -9,13 +9,14 @@ python3-openid, pythonOlder, semantic-version, + setuptools, toml, }: buildPythonPackage rec { pname = "liccheck"; version = "0.9.3"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.7"; @@ -26,7 +27,9 @@ buildPythonPackage rec { hash = "sha256-ohq3ZsbZcyqhwmvaVF/+mo7lNde5gjbz8pwhzHi3SPY="; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ configparser semantic-version toml @@ -43,10 +46,10 @@ buildPythonPackage rec { meta = with lib; { description = "Check python packages from requirement.txt and report issues"; - mainProgram = "liccheck"; homepage = "https://github.com/dhatim/python-license-check"; - changelog = "https://github.com/dhatim/python-license-check/releases/tag/${version}"; + changelog = "https://github.com/dhatim/python-license-check/releases/tag/${src.tag}"; license = licenses.asl20; maintainers = with maintainers; [ fab ]; + mainProgram = "liccheck"; }; }