Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / fastjsonschema / default.nix
blob8c1be492ec1567665f8a841a664c19af4d3f6d06
1 { lib
2 , stdenv
3 , buildPythonPackage
4 , fetchFromGitHub
5 , pytestCheckHook
6 , pythonOlder
7 }:
9 buildPythonPackage rec {
10   pname = "fastjsonschema";
11   version = "2.16.2";
12   format = "setuptools";
14   disabled = pythonOlder "3.7";
16   src = fetchFromGitHub {
17     owner = "horejsek";
18     repo = "python-fastjsonschema";
19     rev = "v${version}";
20     fetchSubmodules = true;
21     hash = "sha256-Gojayel/xQ5gRI0nbwsroeSMdRndjb+8EniX1Qs4nbg=";
22   };
24   nativeCheckInputs = [
25     pytestCheckHook
26   ];
28   dontUseSetuptoolsCheck = true;
30   disabledTests = [
31     "benchmark"
32     # these tests require network access
33     "remote ref"
34     "definitions"
35   ] ++ lib.optionals stdenv.isDarwin [
36     "test_compile_to_code_custom_format"  # cannot import temporary module created during test
37   ];
39   pythonImportsCheck = [
40     "fastjsonschema"
41   ];
43   meta = with lib; {
44     description = "JSON schema validator for Python";
45     homepage = "https://horejsek.github.io/python-fastjsonschema/";
46     license = licenses.bsd3;
47     maintainers = with maintainers; [ drewrisinger ];
48   };