1{ lib
2, buildPythonPackage
3, python-dateutil
4, docopt
5, fetchPypi
6, pytestCheckHook
7, pyyaml
8, ruamel-yaml
9, testfixtures
10}:
11
12buildPythonPackage rec {
13 version = "1.8.0";
14 pname = "pykwalify";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-eWsq0+1MuZuIMItTP7L1WcMPpu+0+p/aETR/SD0kWIQ=";
19 };
20
21 propagatedBuildInputs = [
22 python-dateutil
23 docopt
24 pyyaml
25 ruamel-yaml
26 ];
27
28 nativeCheckInputs = [
29 pytestCheckHook
30 testfixtures
31 ];
32
33 disabledTests = [
34 "test_multi_file_support"
35 ];
36
37 pythonImportsCheck = [ "pykwalify" ];
38
39 meta = with lib; {
40 homepage = "https://github.com/Grokzen/pykwalify";
41 description = "YAML/JSON validation library";
42 longDescription = ''
43 This framework is a port with a lot of added functionality
44 of the Java version of the framework kwalify that can be found at
45 http://www.kuwata-lab.com/kwalify/
46
47 The original source code can be found at
48 http://sourceforge.net/projects/kwalify/files/kwalify-java/0.5.1/
49
50 The source code of the latest release that has been used can be found at
51 https://github.com/sunaku/kwalify.
52 Please note that source code is not the original authors code
53 but a fork/upload of the last release available in Ruby.
54
55 The schema this library is based on and extended from:
56 http://www.kuwata-lab.com/kwalify/ruby/users-guide.01.html#schema
57 '';
58 license = licenses.mit;
59 maintainers = with maintainers; [ siriobalmelli ];
60 };
61}