1{ lib, fetchPypi, buildPythonPackage
2, six, sqlalchemy
3, mock, pytz, isort, flake8, jinja2, pg8000, pyodbc, pytest, pymysql, python-dateutil
4, docutils, flexmock, psycopg2, pygments }:
5
6buildPythonPackage rec {
7 pname = "sqlalchemy-utils";
8 version = "0.37.7";
9
10 src = fetchPypi {
11 inherit version;
12 pname = "SQLAlchemy-Utils";
13 sha256 = "sha256-cW2dlZIljbllGlEdA+ayVTJCwqRAhV7j99WBK7tV2es=";
14 };
15
16 propagatedBuildInputs = [
17 six
18 sqlalchemy
19 ];
20
21 # Attempts to access localhost and there's also no database access
22 doCheck = false;
23 checkInputs = [
24 mock
25 pytz
26 isort
27 flake8
28 jinja2
29 pg8000
30 pyodbc
31 pytest
32 pymysql
33 python-dateutil
34 docutils
35 flexmock
36 psycopg2
37 pygments
38 ];
39
40 checkPhase = ''
41 pytest tests
42 '';
43
44 meta = with lib; {
45 homepage = "https://github.com/kvesteri/sqlalchemy-utils";
46 description = "Various utility functions and datatypes for SQLAlchemy";
47 license = licenses.bsd3;
48 maintainers = with maintainers; [ eadwu ];
49 };
50}