1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 05:31:22 +00:00

python3Packages.ormar: init at 0.10.23

This commit is contained in:
Felix Andreas 2021-12-29 23:16:27 +01:00
parent 4e6d70e625
commit 6eb1bf561f
2 changed files with 82 additions and 0 deletions

View file

@ -0,0 +1,80 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, poetry-core
, databases
, pydantic
, sqlalchemy
, asyncpg
, psycopg2
, aiomysql
, aiosqlite
, cryptography
, orjson
, typing-extensions
, importlib-metadata
, aiopg
, mysqlclient
, pymysql
, pytestCheckHook
, pytest-asyncio
, fastapi
}:
buildPythonPackage rec {
pname = "ormar";
version = "0.10.23";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "collerek";
repo = pname;
rev = version;
sha256 = "sha256-ILJvJyd56lqlKq7+mUz26LvusYb5AOOfoA7OgNq2fT0=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
databases
pydantic
sqlalchemy
asyncpg
psycopg2
aiomysql
aiosqlite
cryptography
orjson
] ++ lib.optionals (pythonOlder "3.8") [
typing-extensions
importlib-metadata
];
checkInputs = [
aiomysql
aiosqlite
aiopg
asyncpg
psycopg2
mysqlclient
pymysql
pytestCheckHook
pytest-asyncio
fastapi
];
pythonImportsCheck = [ "ormar" ];
meta = with lib; {
homepage = "https://github.com/collerek/ormar";
description = "A simple async ORM with fastapi in mind and pydantic validation.";
license = licenses.mit;
maintainers = with maintainers; [ andreasfelix ];
};
}

View file

@ -5566,6 +5566,8 @@ in {
orm = callPackage ../development/python-modules/orm { };
ormar = callPackage ../development/python-modules/ormar { };
ortools = (toPythonModule (pkgs.or-tools.override { inherit (self) python; })).python;
orvibo = callPackage ../development/python-modules/orvibo { };