mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
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:
parent
d98007c59a
commit
ac247ed831
@ -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 = [
|
||||
|
Loading…
Reference in New Issue
Block a user