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