1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 poetry-core, 7 jsonpatch, 8 jsonschema, 9 pytestCheckHook, 10}: 11 12buildPythonPackage rec { 13 pname = "warlock"; 14 version = "2.0.1"; 15 format = "pyproject"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "bcwaldon"; 21 repo = pname; 22 tag = version; 23 hash = "sha256-HOCLzFYmOL/tCXT+NO/tCZuVXVowNEPP3g33ZYg4+6Q="; 24 }; 25 26 postPatch = '' 27 sed -i '/--cov/d' pytest.ini 28 ''; 29 30 nativeBuildInputs = [ poetry-core ]; 31 32 propagatedBuildInputs = [ 33 jsonpatch 34 jsonschema 35 ]; 36 37 nativeCheckInputs = [ pytestCheckHook ]; 38 39 disabledTests = [ 40 # https://github.com/bcwaldon/warlock/issues/64 41 "test_recursive_models" 42 ]; 43 44 pythonImportsCheck = [ "warlock" ]; 45 46 meta = with lib; { 47 description = "Python object model built on JSON schema and JSON patch"; 48 homepage = "https://github.com/bcwaldon/warlock"; 49 license = licenses.asl20; 50 maintainers = [ ]; 51 }; 52}