1{ lib
2, fetchPypi
3, buildPythonPackage
4, flask
5, flask_login
6, flask_sqlalchemy
7, flexmock
8, pytestCheckHook
9, sqlalchemy
10, sqlalchemy-utils
11, sqlalchemy-i18n
12}:
13
14buildPythonPackage rec {
15 pname = "SQLAlchemy-Continuum";
16 version = "1.3.11";
17
18 src = fetchPypi {
19 inherit pname version;
20 sha256 = "1c9yd9s98crqgs39rc2ld2r0nchgyjrfbjdlqb99y4hhc6lv04xw";
21 };
22
23 propagatedBuildInputs = [
24 sqlalchemy
25 sqlalchemy-utils
26 ];
27
28 # indicate tests that we don't have a database server at hand
29 DB = "sqlite";
30
31 checkInputs = [
32 pytestCheckHook
33 sqlalchemy-i18n
34 flask
35 flask_login
36 flask_sqlalchemy
37 flexmock
38 ];
39
40 meta = with lib; {
41 homepage = "https://github.com/kvesteri/sqlalchemy-continuum/";
42 description = "Versioning and auditing extension for SQLAlchemy";
43 license = licenses.bsd3;
44 # https://github.com/kvesteri/sqlalchemy-continuum/issues/255
45 broken = lib.versionAtLeast sqlalchemy.version "1.4";
46 };
47}