1
0
Fork 1
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:
Fabian Affolter 2022-05-01 21:55:13 +02:00 committed by GitHub
commit 1fc9d3b16d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 23 deletions

View file

@ -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

View file

@ -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"