summary refs log tree commit diff
path: root/pkgs/development/python-modules/ormar
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2022-02-16 11:09:47 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2022-02-16 11:09:47 +0100
commit66da079bd12eb48fe45ed9c111243cbc17b12e0f (patch)
tree5df01be34c6ee234b5d950385f24fc746131c374 /pkgs/development/python-modules/ormar
parent0fe90ccb98a6fcf1cd23c3d6ca728d5d0f2609c3 (diff)
downloadnixpkgs-66da079bd12eb48fe45ed9c111243cbc17b12e0f.tar
nixpkgs-66da079bd12eb48fe45ed9c111243cbc17b12e0f.tar.gz
nixpkgs-66da079bd12eb48fe45ed9c111243cbc17b12e0f.tar.bz2
nixpkgs-66da079bd12eb48fe45ed9c111243cbc17b12e0f.tar.lz
nixpkgs-66da079bd12eb48fe45ed9c111243cbc17b12e0f.tar.xz
nixpkgs-66da079bd12eb48fe45ed9c111243cbc17b12e0f.tar.zst
nixpkgs-66da079bd12eb48fe45ed9c111243cbc17b12e0f.zip
python3Packages.ormar: 0.10.23 -> 0.10.24
Diffstat (limited to 'pkgs/development/python-modules/ormar')
-rw-r--r--pkgs/development/python-modules/ormar/default.nix72
1 files changed, 42 insertions, 30 deletions
diff --git a/pkgs/development/python-modules/ormar/default.nix b/pkgs/development/python-modules/ormar/default.nix
index fee9af14715..d5b9b7cf88e 100644
--- a/pkgs/development/python-modules/ormar/default.nix
+++ b/pkgs/development/python-modules/ormar/default.nix
@@ -1,37 +1,39 @@
 { lib
-, buildPythonPackage
-, pythonOlder
-, fetchFromGitHub
-, poetry-core
-, databases
-, pydantic
-, sqlalchemy
-, asyncpg
-, psycopg2
 , aiomysql
+, aiopg
 , aiosqlite
+, asyncpg
+, buildPythonPackage
 , cryptography
-, orjson
-, typing-extensions
+, databases
+, fastapi
+, fetchFromGitHub
 , importlib-metadata
-, aiopg
 , mysqlclient
+, orjson
+, poetry-core
+, psycopg2
+, pydantic
 , pymysql
-, pytestCheckHook
 , pytest-asyncio
-, fastapi
+, pytestCheckHook
+, pythonOlder
+, sqlalchemy
+, typing-extensions
 }:
 
 buildPythonPackage rec {
   pname = "ormar";
-  version = "0.10.23";
+  version = "0.10.24";
   format = "pyproject";
+
   disabled = pythonOlder "3.7";
+
   src = fetchFromGitHub {
     owner = "collerek";
     repo = pname;
     rev = version;
-    sha256 = "sha256-ILJvJyd56lqlKq7+mUz26LvusYb5AOOfoA7OgNq2fT0=";
+    hash = "sha256-zKugeGDcYDI4VKspJPWeZCBubTqMxxfOVQCuF4pC49E=";
   };
 
   nativeBuildInputs = [
@@ -39,16 +41,15 @@ buildPythonPackage rec {
   ];
 
   propagatedBuildInputs = [
-    databases
-    pydantic
-    sqlalchemy
-    asyncpg
-    psycopg2
     aiomysql
     aiosqlite
+    asyncpg
     cryptography
-
+    databases
     orjson
+    psycopg2
+    pydantic
+    sqlalchemy
   ] ++ lib.optionals (pythonOlder "3.8") [
     typing-extensions
     importlib-metadata
@@ -56,24 +57,35 @@ buildPythonPackage rec {
 
   checkInputs = [
     aiomysql
-    aiosqlite
     aiopg
+    aiosqlite
     asyncpg
-
-    psycopg2
+    fastapi
     mysqlclient
+    psycopg2
     pymysql
-
-    pytestCheckHook
     pytest-asyncio
-    fastapi
+    pytestCheckHook
+  ];
+
+  postPatch = ''
+    substituteInPlace pyproject.toml \
+      --replace 'SQLAlchemy = ">=1.3.18,<=1.4.29"' 'SQLAlchemy = ">=1.3.18"' \
+      --replace 'databases = ">=0.3.2,!=0.5.0,!=0.5.1,!=0.5.2,!=0.5.3,<0.5.5"' 'databases = ">=0.5.5"'
+  '';
+
+  disabledTests = [
+    # TypeError: Object of type bytes is not JSON serializable
+    "test_bulk_operations_with_json"
   ];
 
-  pythonImportsCheck = [ "ormar" ];
+  pythonImportsCheck = [
+    "ormar"
+  ];
 
   meta = with lib; {
     homepage = "https://github.com/collerek/ormar";
-    description = "A simple async ORM with fastapi in mind and pydantic validation.";
+    description = "Async ORM with fastapi in mind and pydantic validation";
     license = licenses.mit;
     maintainers = with maintainers; [ andreasfelix ];
   };