mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-05 17:21:39 -05:00
feat(overrides): add pydantic-core and pydantic 2
Pydantic 2 uses hatchling as a build system. It depends on pydantic-core, which is written in Rust and needs Maturin to build. Pydantic-core defaults to wheel now.
This commit is contained in:
parent
9e7d4b07a0
commit
a4df25b29e
2 changed files with 20 additions and 2 deletions
|
@ -12519,8 +12519,22 @@
|
|||
"setuptools"
|
||||
],
|
||||
"pydantic": [
|
||||
"cython",
|
||||
"setuptools"
|
||||
{
|
||||
"buildSystem": "cython",
|
||||
"until": "2.0.0"
|
||||
},
|
||||
{
|
||||
"buildSystem": "setuptools",
|
||||
"until": "2.0.0"
|
||||
},
|
||||
{
|
||||
"buildSystem": "hatchling",
|
||||
"from": "2.0.0"
|
||||
},
|
||||
{
|
||||
"buildSystem": "hatch-fancy-pypi-readme",
|
||||
"from": "2.0.0"
|
||||
}
|
||||
],
|
||||
"pydantic-dydb": [
|
||||
"poetry-core"
|
||||
|
|
|
@ -1820,6 +1820,10 @@ lib.composeManyExtensions [
|
|||
}
|
||||
);
|
||||
|
||||
pydantic-core = super.pydantic-core.override {
|
||||
preferWheel = true;
|
||||
};
|
||||
|
||||
py-solc-x = super.py-solc-x.overridePythonAttrs (
|
||||
old: {
|
||||
preConfigure = ''
|
||||
|
|
Loading…
Add table
Reference in a new issue