1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 pytestCheckHook,
7 pyyaml,
8 ruamel-yaml,
9 setuptools,
10}:
11
12buildPythonPackage rec {
13 pname = "yamale";
14 version = "5.2.1";
15 pyproject = true;
16
17 disabled = pythonOlder "3.6";
18
19 src = fetchFromGitHub {
20 owner = "23andMe";
21 repo = "yamale";
22 rev = "refs/tags/${version}";
23 hash = "sha256-iiiQAZ050FintRSV3l2zfikTNmphhJgrn+4tUHORiSk=";
24 };
25
26 build-system = [ setuptools ];
27
28 dependencies = [
29 pyyaml
30 ruamel-yaml
31 ];
32
33 nativeCheckInputs = [ pytestCheckHook ];
34
35 pythonImportsCheck = [ "yamale" ];
36
37 meta = with lib; {
38 description = "Schema and validator for YAML";
39 homepage = "https://github.com/23andMe/Yamale";
40 changelog = "https://github.com/23andMe/Yamale/releases/tag/${version}";
41 license = licenses.mit;
42 maintainers = with maintainers; [ rtburns-jpl ];
43 mainProgram = "yamale";
44 };
45}