2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-07-18 16:06:22 +00:00
|
|
|
, buildPythonPackage
|
2023-01-11 07:51:40 +00:00
|
|
|
, fetchPypi
|
2020-07-18 16:06:22 +00:00
|
|
|
, flask
|
2022-10-21 18:38:19 +00:00
|
|
|
, flask-login
|
2022-08-12 12:06:08 +00:00
|
|
|
, flask-sqlalchemy
|
2020-07-18 16:06:22 +00:00
|
|
|
, flexmock
|
2023-01-11 07:51:40 +00:00
|
|
|
, psycopg2
|
|
|
|
, pymysql
|
2020-07-18 16:06:22 +00:00
|
|
|
, pytestCheckHook
|
2023-01-11 07:51:40 +00:00
|
|
|
, pythonOlder
|
2020-07-18 16:06:22 +00:00
|
|
|
, sqlalchemy
|
|
|
|
, sqlalchemy-i18n
|
2023-01-11 07:51:40 +00:00
|
|
|
, sqlalchemy-utils
|
2020-07-18 16:06:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2023-01-11 07:51:40 +00:00
|
|
|
pname = "sqlalchemy-continuum";
|
|
|
|
version = "1.3.14";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2023-01-11 07:51:40 +00:00
|
|
|
pname = "SQLAlchemy-Continuum";
|
|
|
|
inherit version;
|
|
|
|
hash = "sha256-1+k/lx6R8tW9gM3M2kqaVEwpmx8cMhDXeqCjyd8O2hM=";
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
sqlalchemy
|
|
|
|
sqlalchemy-utils
|
|
|
|
];
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
passthru.optional-dependencies = {
|
|
|
|
flask = [
|
|
|
|
flask
|
|
|
|
];
|
|
|
|
flask-login = [
|
|
|
|
flask-login
|
|
|
|
];
|
|
|
|
flask-sqlalchemy = [
|
|
|
|
flask-sqlalchemy
|
|
|
|
];
|
|
|
|
flexmock = [
|
|
|
|
flexmock
|
|
|
|
];
|
|
|
|
i18n = [
|
|
|
|
sqlalchemy-i18n
|
|
|
|
];
|
|
|
|
};
|
2020-07-18 16:06:22 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-01-11 07:51:40 +00:00
|
|
|
psycopg2
|
|
|
|
pymysql
|
2020-07-18 16:06:22 +00:00
|
|
|
pytestCheckHook
|
2023-03-04 12:14:45 +00:00
|
|
|
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
|
2023-01-11 07:51:40 +00:00
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
# Indicate tests that we don't have a database server at hand
|
2023-01-11 07:51:40 +00:00
|
|
|
DB = "sqlite";
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Test doesn't support latest SQLAlchemy
|
|
|
|
"tests/plugins/test_flask.py"
|
|
|
|
];
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"sqlalchemy_continuum"
|
2020-07-18 16:06:22 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Versioning and auditing extension for SQLAlchemy";
|
2023-01-11 07:51:40 +00:00
|
|
|
homepage = "https://github.com/kvesteri/sqlalchemy-continuum/";
|
|
|
|
changelog = "https://github.com/kvesteri/sqlalchemy-continuum/blob/${version}/CHANGES.rst";
|
2020-07-18 16:06:22 +00:00
|
|
|
license = licenses.bsd3;
|
2023-01-11 07:51:40 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
}
|