1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchFromGitHub
5 # Check inputs
6, pytestCheckHook
7}:
8
9buildPythonPackage rec {
10 pname = "fastjsonschema";
11 version = "2.14.5";
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 = "1hgzafswdw5zqrd8qhdxa43crzfy7lrlifdn90133a0h3psr7qs1";
21 };
22
23 checkInputs = [ pytestCheckHook ];
24 dontUseSetuptoolsCheck = true;
25 disabledTests = [
26 "benchmark"
27
28 # these tests require network access
29 "remote ref"
30 "definitions"
31 ];
32
33 meta = with lib; {
34 description = "Fast JSON schema validator for Python.";
35 homepage = "https://horejsek.github.io/python-fastjsonschema/";
36 license = licenses.bsd3;
37 maintainers = with maintainers; [ drewrisinger ];
38 };
39}