depot/third_party/nixpkgs/pkgs/development/python-modules/sqlmodel/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

66 lines
1.2 KiB
Nix

{ lib
, buildPythonPackage
, dirty-equals
, fastapi
, fetchFromGitHub
, poetry-core
, pydantic
, pytest-asyncio
, pytest7CheckHook
, pythonOlder
, sqlalchemy
}:
buildPythonPackage rec {
pname = "sqlmodel";
version = "0.0.16";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "tiangolo";
repo = "sqlmodel";
rev = "refs/tags/${version}";
hash = "sha256-hDJcekn0ExYUCs8kBZkJzsWqXsB/cI6RbW3EhRCCioM=";
};
build-system = [
poetry-core
];
dependencies = [
pydantic
sqlalchemy
];
nativeCheckInputs = [
dirty-equals
fastapi
pytest-asyncio
pytest7CheckHook
];
pythonImportsCheck = [
"sqlmodel"
];
disabledTests = [
# AssertionError: assert 'enum_field VARCHAR(1)
"test_sqlite_ddl_sql"
];
disabledTestPaths = [
# Coverage
"docs_src/tutorial/"
"tests/test_tutorial/"
];
meta = with lib; {
description = "Module to work with SQL databases";
homepage = "https://github.com/tiangolo/sqlmodel";
changelog = "https://github.com/tiangolo/sqlmodel/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}