Merge pull request #171128 from fabaff/fastjsonschema-bump
python310Packages.fastjsonschema: 2.15.2 -> 2.15.3
This commit is contained in:
commit
1fc9d3b16d
|
@ -1,24 +1,23 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fetchpatch
|
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "fastjsonschema";
|
pname = "fastjsonschema";
|
||||||
version = "2.15.2";
|
version = "2.15.3";
|
||||||
format = "setuptools";
|
format = "setuptools";
|
||||||
|
|
||||||
disabled = pythonOlder "3.3";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "horejsek";
|
owner = "horejsek";
|
||||||
repo = "python-fastjsonschema";
|
repo = "python-fastjsonschema";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
hash = "sha256-zrdQVFfLZxZRr9qvss4CI3LJK97xl+bY+AcPzcweYeU=";
|
sha256 = "sha256-WKnjSlKtMGpWKPbPr7hpS6Dg0+9i/nWVYmar0N3Q9Pc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
|
@ -27,16 +26,6 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
dontUseSetuptoolsCheck = true;
|
dontUseSetuptoolsCheck = true;
|
||||||
|
|
||||||
patches = [
|
|
||||||
# Can be removed with the next release, https://github.com/horejsek/python-fastjsonschema/pull/134
|
|
||||||
(fetchpatch {
|
|
||||||
name = "fix-exception-name.patch";
|
|
||||||
url = "https://github.com/horejsek/python-fastjsonschema/commit/f639dcba0299926d688e1d8d08a6a91bfe70ce8b.patch";
|
|
||||||
sha256 = "sha256-yPV5ZNeyAobLrYf5QHanPsEomBPJ/7ZN2148R8NO4/U=";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
"benchmark"
|
"benchmark"
|
||||||
# these tests require network access
|
# these tests require network access
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, sqlalchemy
|
, sqlalchemy
|
||||||
, typing-extensions
|
, ujson
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -22,7 +22,8 @@ buildPythonPackage rec {
|
||||||
version = "2.8.0";
|
version = "2.8.0";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
# Support for typing-extensions >= 4.0.0 on Python < 3.10 is missing
|
||||||
|
disabled = pythonOlder "3.10";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "seandstewart";
|
owner = "seandstewart";
|
||||||
|
@ -36,13 +37,12 @@ buildPythonPackage rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
inflection
|
|
||||||
pendulum
|
|
||||||
fastjsonschema
|
fastjsonschema
|
||||||
orjson
|
|
||||||
future-typing
|
future-typing
|
||||||
] ++ lib.optionals (pythonOlder "3.10") [
|
inflection
|
||||||
typing-extensions
|
orjson
|
||||||
|
pendulum
|
||||||
|
ujson
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
|
@ -63,13 +63,14 @@ buildPythonPackage rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
# We use orjson
|
|
||||||
"test_ujson"
|
|
||||||
# ConstraintValueError: Given value <{'key...
|
# ConstraintValueError: Given value <{'key...
|
||||||
"test_tagged_union_validate"
|
"test_tagged_union_validate"
|
||||||
|
# TypeError: 'NoneType' object cannot be interpreted as an integer
|
||||||
|
"test_ujson"
|
||||||
];
|
];
|
||||||
|
|
||||||
disabledTestPaths = [
|
disabledTestPaths = [
|
||||||
|
# We don't care about benchmarks
|
||||||
"benchmark/"
|
"benchmark/"
|
||||||
# Tests are failing on Hydra
|
# Tests are failing on Hydra
|
||||||
"tests/mypy/test_mypy.py"
|
"tests/mypy/test_mypy.py"
|
||||||
|
|
Loading…
Reference in a new issue