10 buildPythonPackage rec {
11 pname = "fastjsonschema";
13 format = "setuptools";
15 disabled = pythonOlder "3.7";
17 src = fetchFromGitHub {
19 repo = "python-fastjsonschema";
21 fetchSubmodules = true;
22 hash = "sha256-UxcxVB4ldnGAYJKWEccivon1CwZD588mNiVJOJPNeN8=";
27 name = "fastjsonschema-pytest8-compat.patch";
28 url = "https://github.com/horejsek/python-fastjsonschema/commit/efc04daf4124a598182dfcfd497615cd1e633d18.patch";
29 hash = "sha256-G1/PIpdN+KFfRP9pUFf/ANXLq3mzrocEHyBNWQMVOZM=";
37 dontUseSetuptoolsCheck = true;
41 # these tests require network access
44 ] ++ lib.optionals stdenv.isDarwin [
45 "test_compile_to_code_custom_format" # cannot import temporary module created during test
48 pythonImportsCheck = [
53 description = "JSON schema validator for Python";
54 homepage = "https://horejsek.github.io/python-fastjsonschema/";
55 license = licenses.bsd3;
56 maintainers = with maintainers; [ drewrisinger ];