uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
92
pkgs/development/python-modules/ormar/default.nix
Normal file
92
pkgs/development/python-modules/ormar/default.nix
Normal file
|
|
@ -0,0 +1,92 @@
|
|||
{ lib
|
||||
, aiomysql
|
||||
, aiopg
|
||||
, aiosqlite
|
||||
, asyncpg
|
||||
, buildPythonPackage
|
||||
, cryptography
|
||||
, databases
|
||||
, fastapi
|
||||
, fetchFromGitHub
|
||||
, importlib-metadata
|
||||
, mysqlclient
|
||||
, orjson
|
||||
, poetry-core
|
||||
, psycopg2
|
||||
, pydantic
|
||||
, pymysql
|
||||
, pytest-asyncio
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, sqlalchemy
|
||||
, typing-extensions
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ormar";
|
||||
version = "0.11.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "collerek";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-I41asBWwOwmi6Yhw/JZ/EcpDWMAoPyxPIGIPiZQV+Yk=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiomysql
|
||||
aiosqlite
|
||||
asyncpg
|
||||
cryptography
|
||||
databases
|
||||
orjson
|
||||
psycopg2
|
||||
pydantic
|
||||
sqlalchemy
|
||||
] ++ lib.optionals (pythonOlder "3.8") [
|
||||
typing-extensions
|
||||
importlib-metadata
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
aiomysql
|
||||
aiopg
|
||||
aiosqlite
|
||||
asyncpg
|
||||
fastapi
|
||||
mysqlclient
|
||||
psycopg2
|
||||
pymysql
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace 'SQLAlchemy = ">=1.3.18,<=1.4.31"' '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"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Async ORM with fastapi in mind and pydantic validation";
|
||||
homepage = "https://github.com/collerek/ormar";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ andreasfelix ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue