python310Packages.sqlalchemy-continuum: normalize pname

- move to optional-dependencies
This commit is contained in:
Fabian Affolter 2023-01-07 10:42:19 +01:00 committed by GitHub
parent 65ea52793a
commit 3b898e7270
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,22 +1,29 @@
{ lib
, fetchPypi
, buildPythonPackage
, fetchPypi
, flask
, flask-login
, flask-sqlalchemy
, flexmock
, psycopg2
, pymysql
, pytestCheckHook
, pythonOlder
, sqlalchemy
, sqlalchemy-utils
, sqlalchemy-i18n
, sqlalchemy-utils
}:
buildPythonPackage rec {
pname = "SQLAlchemy-Continuum";
pname = "sqlalchemy-continuum";
version = "1.3.14";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
pname = "SQLAlchemy-Continuum";
inherit version;
hash = "sha256-1+k/lx6R8tW9gM3M2kqaVEwpmx8cMhDXeqCjyd8O2hM=";
};
@ -25,21 +32,44 @@ buildPythonPackage rec {
sqlalchemy-utils
];
passthru.optional-dependencies = {
flask = [
flask
];
flask-login = [
flask-login
];
flask-sqlalchemy = [
flask-sqlalchemy
];
flexmock = [
flexmock
];
i18n = [
sqlalchemy-i18n
];
};
checkInputs = [
psycopg2
pymysql
pytestCheckHook
] ++ passthru.optional-dependencies.flask
++ passthru.optional-dependencies.flask-login
++ passthru.optional-dependencies.flask-sqlalchemy
++ passthru.optional-dependencies.flexmock
++ passthru.optional-dependencies.i18n;
# indicate tests that we don't have a database server at hand
DB = "sqlite";
checkInputs = [
pytestCheckHook
sqlalchemy-i18n
flask
flask-login
flask-sqlalchemy
flexmock
pythonImportsCheck = [
"sqlalchemy_continuum"
];
meta = with lib; {
homepage = "https://github.com/kvesteri/sqlalchemy-continuum/";
description = "Versioning and auditing extension for SQLAlchemy";
homepage = "https://github.com/kvesteri/sqlalchemy-continuum/";
changelog = "https://github.com/kvesteri/sqlalchemy-continuum/blob/${version}/CHANGES.rst";
license = licenses.bsd3;
maintainers = with maintainers; [ ];