python3Packages.cfgv: modernize

This commit is contained in:
Nick Cao
2025-11-20 16:01:11 -05:00
parent 16453a39a9
commit 0e1c33744e
@@ -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 ];
};
}