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