python3Packages.pydantic: cythonize

Compiling pydantic with cython is supposed to give a 30-50% performance
benefit.

>>> import pydantic
>>> pydantic.compiled
True

https://pydantic-docs.helpmanual.io/install/#compiled-with-cython
This commit is contained in:
Martin Weinelt 2022-02-17 12:31:55 +01:00
parent d98007c59a
commit ac247ed831
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -1,5 +1,7 @@
{ lib
, buildPythonPackage
, cython
, devtools
, email_validator
, fetchFromGitHub
, pytest-mock
@ -7,7 +9,6 @@
, python-dotenv
, pythonOlder
, typing-extensions
, ujson
}:
buildPythonPackage rec {
@ -22,11 +23,15 @@ buildPythonPackage rec {
sha256 = "sha256-C4WP8tiMRFmkDkQRrvP3yOSM2zN8pHJmX9cdANIckpM=";
};
nativeBuildInputs = [
cython
];
propagatedBuildInputs = [
devtools
email_validator
python-dotenv
typing-extensions
ujson
];
checkInputs = [