2020-04-10 02:45:22 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchFromGitHub
|
|
|
|
# Check inputs
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "fastjsonschema";
|
2021-06-13 09:13:32 +00:00
|
|
|
version = "2.15.1";
|
2020-04-10 02:45:22 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.3";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "horejsek";
|
|
|
|
repo = "python-fastjsonschema";
|
|
|
|
rev = "v${version}";
|
|
|
|
fetchSubmodules = true;
|
2021-06-13 09:13:32 +00:00
|
|
|
sha256 = "sha256-ltxFJ3V5/bckusspQ5o0F4reMoB4KpYWPHF8ZNXGqVQ=";
|
2020-04-10 02:45:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
dontUseSetuptoolsCheck = true;
|
|
|
|
disabledTests = [
|
|
|
|
"benchmark"
|
|
|
|
# these tests require network access
|
|
|
|
"remote ref"
|
|
|
|
"definitions"
|
|
|
|
];
|
|
|
|
|
2021-06-13 09:13:32 +00:00
|
|
|
pythonImportsCheck = [ "fastjsonschema" ];
|
|
|
|
|
2020-04-10 02:45:22 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Fast JSON schema validator for Python.";
|
|
|
|
homepage = "https://horejsek.github.io/python-fastjsonschema/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ drewrisinger ];
|
|
|
|
};
|
|
|
|
}
|