about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pydantic
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2022-12-30 20:13:35 +0100
committerMartin Weinelt <hexa@darmstadt.ccc.de>2023-01-05 01:10:21 +0100
commit0a8c2d347d863200e8e42d5e963e65398bbef85e (patch)
tree406e240869e24a09793387dbca4f9d9b22beaac7 /pkgs/development/python-modules/pydantic
parentbcf7a4ca43366da7b15684c8f830307bc3250143 (diff)
python3Packages.pydantic: 1.9.2 -> 1.10.4
Diffstat (limited to 'pkgs/development/python-modules/pydantic')
-rw-r--r--pkgs/development/python-modules/pydantic/default.nix13
1 files changed, 11 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/pydantic/default.nix b/pkgs/development/python-modules/pydantic/default.nix
index 31f456dabc681..e0f342f72217c 100644
--- a/pkgs/development/python-modules/pydantic/default.nix
+++ b/pkgs/development/python-modules/pydantic/default.nix
@@ -1,6 +1,7 @@
 { lib
 , stdenv
 , buildPythonPackage
+, autoflake
 , cython
 , devtools
 , email-validator
@@ -9,6 +10,7 @@
 , pytestCheckHook
 , python-dotenv
 , pythonOlder
+, pyupgrade
 , typing-extensions
 # dependencies for building documentation.
 # docs fail to build in Darwin sandbox: https://github.com/samuelcolvin/pydantic/issues/4245
@@ -27,7 +29,7 @@
 
 buildPythonPackage rec {
   pname = "pydantic";
-  version = "1.9.2";
+  version = "1.10.4";
 
   outputs = [
     "out"
@@ -41,7 +43,7 @@ buildPythonPackage rec {
     owner = "samuelcolvin";
     repo = pname;
     rev = "refs/tags/v${version}";
-    sha256 = "sha256-ZGFxyQ1qD3zZWTdfTeoGj3UcUwAzO8K0DySdVAsMHyI=";
+    sha256 = "sha256-BFyv1uVq2pLcJeS5955G/pDA3ce9YTqZ6F7kAkwnuvY=";
   };
 
   postPatch = ''
@@ -65,8 +67,10 @@ buildPythonPackage rec {
   ];
 
   propagatedBuildInputs = [
+    autoflake
     devtools
     email-validator
+    pyupgrade
     python-dotenv
     typing-extensions
   ];
@@ -76,6 +80,11 @@ buildPythonPackage rec {
     pytestCheckHook
   ];
 
+  pytestFlagsArray = [
+    # https://github.com/pydantic/pydantic/issues/4817
+    "-W" "ignore::pytest.PytestReturnNotNoneWarning"
+  ];
+
   preCheck = ''
     export HOME=$(mktemp -d)
   '';