2019-01-21 16:34:25 +00:00
|
|
|
{ lib, fetchPypi, buildPythonPackage
|
|
|
|
, six, sqlalchemy
|
2021-07-03 12:37:24 +01:00
|
|
|
, mock, pytz, isort, flake8, jinja2, pg8000, pyodbc, pytest, pymysql, python-dateutil
|
2019-01-21 16:34:25 +00:00
|
|
|
, docutils, flexmock, psycopg2, pygments }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sqlalchemy-utils";
|
2021-06-19 05:40:40 +01:00
|
|
|
version = "0.37.7";
|
2019-01-21 16:34:25 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version;
|
|
|
|
pname = "SQLAlchemy-Utils";
|
2021-06-19 05:40:40 +01:00
|
|
|
sha256 = "sha256-cW2dlZIljbllGlEdA+ayVTJCwqRAhV7j99WBK7tV2es=";
|
2019-01-21 16:34:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
six
|
|
|
|
sqlalchemy
|
|
|
|
];
|
|
|
|
|
|
|
|
# Attempts to access localhost and there's also no database access
|
|
|
|
doCheck = false;
|
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
pytz
|
|
|
|
isort
|
|
|
|
flake8
|
|
|
|
jinja2
|
|
|
|
pg8000
|
|
|
|
pyodbc
|
|
|
|
pytest
|
|
|
|
pymysql
|
2021-07-03 12:37:24 +01:00
|
|
|
python-dateutil
|
2019-01-21 16:34:25 +00:00
|
|
|
docutils
|
|
|
|
flexmock
|
|
|
|
psycopg2
|
|
|
|
pygments
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest tests
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/kvesteri/sqlalchemy-utils";
|
2019-01-21 16:34:25 +00:00
|
|
|
description = "Various utility functions and datatypes for SQLAlchemy";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ eadwu ];
|
|
|
|
};
|
|
|
|
}
|