mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-06 09:41:39 -05:00
fix: fix jsonschema
wheel build
This commit is contained in:
parent
3f12e27d38
commit
cd54268f81
4 changed files with 33 additions and 3 deletions
|
@ -1023,7 +1023,7 @@ lib.composeManyExtensions [
|
|||
super.jsonschema.overridePythonAttrs
|
||||
(old: {
|
||||
propagatedBuildInputs = (old.propagatedBuildInputs or [ ]) ++ [ self.importlib-resources ];
|
||||
postPatch = old.postPatch or "" + lib.optionalString (lib.versionAtLeast super.jsonschema.version "4.18.0") ''
|
||||
postPatch = old.postPatch or "" + lib.optionalString (!(old.src.isWheel or false) && (lib.versionAtLeast super.jsonschema.version "4.18.0")) ''
|
||||
sed -i "/Topic :: File Formats :: JSON/d" pyproject.toml
|
||||
'';
|
||||
})
|
||||
|
|
|
@ -11,12 +11,18 @@ let
|
|||
rpds-py = super.rpds-py.override {
|
||||
preferWheel = isLinux;
|
||||
};
|
||||
|
||||
referencing = super.referencing.override {
|
||||
preferWheel = isLinux;
|
||||
};
|
||||
|
||||
jsonschema-specifications = super.jsonschema-specifications.override {
|
||||
preferWheel = isLinux;
|
||||
};
|
||||
|
||||
jsonschema = super.jsonschema.override {
|
||||
preferWheel = isLinux;
|
||||
};
|
||||
}
|
||||
);
|
||||
};
|
||||
|
@ -24,4 +30,5 @@ in
|
|||
assert isLinux ->
|
||||
env.python.pkgs.rpds-py.src.isWheel
|
||||
&& env.python.pkgs.referencing.src.isWheel
|
||||
&& env.python.pkgs.jsonschema-specifications.src.isWheel; env
|
||||
&& env.python.pkgs.jsonschema-specifications.src.isWheel
|
||||
&& env.python.pkgs.jsonschema.src.isWheel; env
|
||||
|
|
24
tests/rpds-py-wheel/poetry.lock
generated
24
tests/rpds-py-wheel/poetry.lock
generated
|
@ -19,6 +19,28 @@ docs = ["furo", "myst-parser", "sphinx", "sphinx-notfound-page", "sphinxcontrib-
|
|||
tests = ["attrs[tests-no-zope]", "zope-interface"]
|
||||
tests-no-zope = ["cloudpickle", "hypothesis", "mypy (>=1.1.1)", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-xdist[psutil]"]
|
||||
|
||||
[[package]]
|
||||
name = "jsonschema"
|
||||
version = "4.18.3"
|
||||
description = "An implementation of JSON Schema validation for Python"
|
||||
category = "main"
|
||||
optional = false
|
||||
python-versions = ">=3.8"
|
||||
files = [
|
||||
{file = "jsonschema-4.18.3-py3-none-any.whl", hash = "sha256:aab78b34c2de001c6b692232f08c21a97b436fe18e0b817bf0511046924fceef"},
|
||||
{file = "jsonschema-4.18.3.tar.gz", hash = "sha256:64b7104d72efe856bea49ca4af37a14a9eba31b40bb7238179f3803130fd34d9"},
|
||||
]
|
||||
|
||||
[package.dependencies]
|
||||
attrs = ">=22.2.0"
|
||||
jsonschema-specifications = ">=2023.03.6"
|
||||
referencing = ">=0.28.4"
|
||||
rpds-py = ">=0.7.1"
|
||||
|
||||
[package.extras]
|
||||
format = ["fqdn", "idna", "isoduration", "jsonpointer (>1.13)", "rfc3339-validator", "rfc3987", "uri-template", "webcolors (>=1.11)"]
|
||||
format-nongpl = ["fqdn", "idna", "isoduration", "jsonpointer (>1.13)", "rfc3339-validator", "rfc3986-validator (>0.1.0)", "uri-template", "webcolors (>=1.11)"]
|
||||
|
||||
[[package]]
|
||||
name = "jsonschema-specifications"
|
||||
version = "2023.6.1"
|
||||
|
@ -160,4 +182,4 @@ files = [
|
|||
[metadata]
|
||||
lock-version = "2.0"
|
||||
python-versions = "^3.9"
|
||||
content-hash = "cf7063dc12735b5bac43b4368027e57adbac10c14adcd5c0d31ed80372af23eb"
|
||||
content-hash = "1ae6e5c22b1e64219fa5ef5d0f2bd484ca5d5cbf81b0fa4b4d3b5de95da510ec"
|
||||
|
|
|
@ -9,6 +9,7 @@ python = "^3.9"
|
|||
rpds-py = "^0.8"
|
||||
referencing = "^0.29.1"
|
||||
jsonschema-specifications = "^2023.6.1"
|
||||
jsonschema = "^4.18.3"
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry-core>=1.5"]
|
||||
|
|
Loading…
Add table
Reference in a new issue