1{ lib
2, buildPythonPackage
3, fetchPypi
4, six
5, sqlalchemy
6, colour
7, flexmock
8, jinja2
9, mock
10, pg8000
11, phonenumbers
12, pygments
13, pymysql
14, pytestCheckHook
15, python-dateutil
16}:
17
18buildPythonPackage rec {
19 pname = "sqlalchemy-utils";
20 version = "0.38.3";
21
22 src = fetchPypi {
23 inherit version;
24 pname = "SQLAlchemy-Utils";
25 sha256 = "sha256-n5r7pgekBFXPcDrfqYRlhL8mFooMWmCnAGO3DWUFH00=";
26 };
27
28 patches = [
29 # We don't run MySQL, MSSQL, or PostgreSQL
30 ./skip-database-tests.patch
31 ];
32
33 propagatedBuildInputs = [
34 six
35 sqlalchemy
36 ];
37
38 checkInputs = [
39 colour
40 flexmock
41 jinja2
42 mock
43 pg8000
44 phonenumbers
45 pygments
46 pymysql
47 pytestCheckHook
48 python-dateutil
49 ];
50
51 disabledTests = [
52 "test_literal_bind"
53 ];
54
55 meta = with lib; {
56 homepage = "https://github.com/kvesteri/sqlalchemy-utils";
57 description = "Various utility functions and datatypes for SQLAlchemy";
58 license = licenses.bsd3;
59 maintainers = with maintainers; [ eadwu ];
60 };
61}