1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, sqlalchemy 5, setuptools-scm 6, setuptools 7, tox 8, sphinx 9, pytest 10, pytest-cov 11, pytest-html 12, pytest-sugar 13, coverage 14, pymysql 15, psycopg2 }: 16 17buildPythonPackage rec { 18 pname = "sqlalchemy-jsonfield"; 19 version = "1.0.0"; 20 21 src = fetchFromGitHub { 22 owner = "penguinolog"; 23 repo = "sqlalchemy_jsonfield"; 24 rev = version; 25 sha256 = "015pl4z84spfw8389hk1szlm37jgw2basvbmzmkacdqi0685zx24"; 26 }; 27 28 SETUPTOOLS_SCM_PRETEND_VERSION = "v${version}"; 29 30 nativeBuildInputs = [ setuptools-scm ]; 31 propagatedBuildInputs = [ sqlalchemy setuptools ]; 32 checkInputs = [ tox sphinx pytest pytest-cov pytest-html pytest-sugar coverage pymysql psycopg2 ]; 33 34 checkPhase = '' 35 TOX_TESTENV_PASSENV="PYTHONPATH SETUPTOOLS_SCM_PRETEND_VERSION" tox -e functional 36 ''; 37 38 meta = with lib; { 39 homepage = "https://github.com/penguinolog/sqlalchemy_jsonfield"; 40 description = "SQLALchemy JSONField implementation for storing dicts at SQL independently from JSON type support"; 41 license = licenses.asl20; 42 maintainers = [ maintainers.ivan-tkatchev ]; 43 }; 44}