1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchFromGitHub 5 # Check inputs 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "fastjsonschema"; 11 version = "2.15.1"; 12 13 disabled = pythonOlder "3.3"; 14 15 src = fetchFromGitHub { 16 owner = "horejsek"; 17 repo = "python-fastjsonschema"; 18 rev = "v${version}"; 19 fetchSubmodules = true; 20 sha256 = "sha256-ltxFJ3V5/bckusspQ5o0F4reMoB4KpYWPHF8ZNXGqVQ="; 21 }; 22 23 checkInputs = [ pytestCheckHook ]; 24 dontUseSetuptoolsCheck = true; 25 disabledTests = [ 26 "benchmark" 27 # these tests require network access 28 "remote ref" 29 "definitions" 30 ]; 31 32 pythonImportsCheck = [ "fastjsonschema" ]; 33 34 meta = with lib; { 35 description = "Fast JSON schema validator for Python."; 36 homepage = "https://horejsek.github.io/python-fastjsonschema/"; 37 license = licenses.bsd3; 38 maintainers = with maintainers; [ drewrisinger ]; 39 }; 40}