Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 53 lines 1.4 kB view raw
1{ lib, buildPythonPackage, fetchPypi 2, dateutil, docopt, pyyaml 3, pytest, testfixtures 4}: 5 6buildPythonPackage rec { 7 version = "1.7.0"; 8 pname = "pykwalify"; 9 10 src = fetchPypi { 11 inherit pname version; 12 sha256 = "1cnfzkg1b01f825ikpw2fhjclf9c8akxjfrbd1vc22x1lg2kk2vy"; 13 }; 14 15 propagatedBuildInputs = [ 16 dateutil 17 docopt 18 pyyaml 19 ]; 20 21 checkInputs = [ 22 pytest 23 testfixtures 24 ]; 25 26 checkPhase = '' 27 pytest \ 28 -k 'not test_multi_file_support' 29 ''; 30 31 meta = with lib; { 32 homepage = "https://github.com/Grokzen/pykwalify"; 33 description = "YAML/JSON validation library"; 34 longDescription = '' 35 This framework is a port with a lot of added functionality 36 of the Java version of the framework kwalify that can be found at 37 http://www.kuwata-lab.com/kwalify/ 38 39 The original source code can be found at 40 http://sourceforge.net/projects/kwalify/files/kwalify-java/0.5.1/ 41 42 The source code of the latest release that has been used can be found at 43 https://github.com/sunaku/kwalify. 44 Please note that source code is not the original authors code 45 but a fork/upload of the last release available in Ruby. 46 47 The schema this library is based on and extended from: 48 http://www.kuwata-lab.com/kwalify/ruby/users-guide.01.html#schema 49 ''; 50 license = licenses.mit; 51 maintainers = with maintainers; [ siriobalmelli ]; 52 }; 53}