2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-07-18 16:06:22 +00:00
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, flask
|
|
|
|
, flask_login
|
|
|
|
, flask_sqlalchemy
|
|
|
|
, flexmock
|
|
|
|
, pytestCheckHook
|
|
|
|
, sqlalchemy
|
|
|
|
, sqlalchemy-utils
|
|
|
|
, sqlalchemy-i18n
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "SQLAlchemy-Continuum";
|
2020-08-20 17:08:02 +00:00
|
|
|
version = "1.3.11";
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-20 17:08:02 +00:00
|
|
|
sha256 = "1c9yd9s98crqgs39rc2ld2r0nchgyjrfbjdlqb99y4hhc6lv04xw";
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
sqlalchemy
|
|
|
|
sqlalchemy-utils
|
|
|
|
];
|
|
|
|
|
|
|
|
# indicate tests that we don't have a database server at hand
|
|
|
|
DB = "sqlite";
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
sqlalchemy-i18n
|
|
|
|
flask
|
|
|
|
flask_login
|
|
|
|
flask_sqlalchemy
|
|
|
|
flexmock
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/kvesteri/sqlalchemy-continuum/";
|
|
|
|
description = "Versioning and auditing extension for SQLAlchemy";
|
|
|
|
license = licenses.bsd3;
|
2021-10-14 00:43:12 +00:00
|
|
|
# https://github.com/kvesteri/sqlalchemy-continuum/issues/255
|
|
|
|
broken = lib.versionAtLeast sqlalchemy.version "1.4";
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
}
|