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