From 0e1c33744ee20131f3fc8de70a227b6b8ea81b26 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Thu, 20 Nov 2025 16:01:11 -0500 Subject: [PATCH] python3Packages.cfgv: modernize --- .../python-modules/cfgv/default.nix | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/cfgv/default.nix b/pkgs/development/python-modules/cfgv/default.nix index 4e15f1bd81cb..a4c0192a25a9 100644 --- a/pkgs/development/python-modules/cfgv/default.nix +++ b/pkgs/development/python-modules/cfgv/default.nix @@ -1,17 +1,15 @@ { lib, buildPythonPackage, - pythonOlder, fetchFromGitHub, + setuptools, pytestCheckHook, }: buildPythonPackage rec { pname = "cfgv"; version = "3.5.0"; - format = "setuptools"; - - disabled = pythonOlder "3.8"; + pyproject = true; src = fetchFromGitHub { owner = "asottile"; @@ -20,14 +18,20 @@ buildPythonPackage rec { hash = "sha256-ccCalTNVEHvh1gKhQgceD/yAScIEQy3ZKqndoWs7FQQ="; }; - nativeCheckInputs = [ pytestCheckHook ]; + build-system = [ + setuptools + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; pythonImportsCheck = [ "cfgv" ]; - meta = with lib; { + meta = { description = "Validate configuration and produce human readable error messages"; homepage = "https://github.com/asottile/cfgv"; - license = licenses.mit; + license = lib.licenses.mit; maintainers = with lib.maintainers; [ nickcao ]; }; }