1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchFromGitHub,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "cfgv";
11 version = "3.4.0";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.8";
15
16 src = fetchFromGitHub {
17 owner = "asottile";
18 repo = "cfgv";
19 tag = "v${version}";
20 hash = "sha256-P02j53dltwdrlUBG89AI+P2GkXYKTVrQNF15rZt58jw=";
21 };
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 pythonImportsCheck = [ "cfgv" ];
26
27 meta = with lib; {
28 description = "Validate configuration and produce human readable error messages";
29 homepage = "https://github.com/asottile/cfgv";
30 license = licenses.mit;
31 maintainers = with lib.maintainers; [ nickcao ];
32 };
33}