mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 04:02:10 +00:00
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
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "fastjsonschema";
|
||||
version = "2.15.2";
|
||||
version = "2.15.3";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.3";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "horejsek";
|
||||
repo = "python-fastjsonschema";
|
||||
rev = "v${version}";
|
||||
fetchSubmodules = true;
|
||||
hash = "sha256-zrdQVFfLZxZRr9qvss4CI3LJK97xl+bY+AcPzcweYeU=";
|
||||
sha256 = "sha256-WKnjSlKtMGpWKPbPr7hpS6Dg0+9i/nWVYmar0N3Q9Pc=";
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
|
@ -27,16 +26,6 @@ buildPythonPackage rec {
|
|||
|
||||
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 = [
|
||||
"benchmark"
|
||||
# these tests require network access
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, sqlalchemy
|
||||
, typing-extensions
|
||||
, ujson
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
|
@ -22,7 +22,8 @@ buildPythonPackage rec {
|
|||
version = "2.8.0";
|
||||
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 {
|
||||
owner = "seandstewart";
|
||||
|
@ -36,13 +37,12 @@ buildPythonPackage rec {
|
|||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
inflection
|
||||
pendulum
|
||||
fastjsonschema
|
||||
orjson
|
||||
future-typing
|
||||
] ++ lib.optionals (pythonOlder "3.10") [
|
||||
typing-extensions
|
||||
inflection
|
||||
orjson
|
||||
pendulum
|
||||
ujson
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
|
@ -63,13 +63,14 @@ buildPythonPackage rec {
|
|||
];
|
||||
|
||||
disabledTests = [
|
||||
# We use orjson
|
||||
"test_ujson"
|
||||
# ConstraintValueError: Given value <{'key...
|
||||
"test_tagged_union_validate"
|
||||
# TypeError: 'NoneType' object cannot be interpreted as an integer
|
||||
"test_ujson"
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# We don't care about benchmarks
|
||||
"benchmark/"
|
||||
# Tests are failing on Hydra
|
||||
"tests/mypy/test_mypy.py"
|
||||
|
|
Loading…
Reference in a new issue