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