2022-06-16 17:23:12 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, six
|
|
|
|
, sqlalchemy
|
|
|
|
, colour
|
|
|
|
, flexmock
|
|
|
|
, jinja2
|
|
|
|
, mock
|
|
|
|
, pg8000
|
|
|
|
, phonenumbers
|
|
|
|
, pygments
|
|
|
|
, pymysql
|
|
|
|
, pytestCheckHook
|
|
|
|
, python-dateutil
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sqlalchemy-utils";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "0.38.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version;
|
|
|
|
pname = "SQLAlchemy-Utils";
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-n5r7pgekBFXPcDrfqYRlhL8mFooMWmCnAGO3DWUFH00=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
patches = [
|
|
|
|
# We don't run MySQL, MSSQL, or PostgreSQL
|
|
|
|
./skip-database-tests.patch
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
six
|
|
|
|
sqlalchemy
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2022-06-16 17:23:12 +00:00
|
|
|
colour
|
|
|
|
flexmock
|
2020-04-24 23:36:52 +00:00
|
|
|
jinja2
|
2022-06-16 17:23:12 +00:00
|
|
|
mock
|
2020-04-24 23:36:52 +00:00
|
|
|
pg8000
|
2022-06-16 17:23:12 +00:00
|
|
|
phonenumbers
|
|
|
|
pygments
|
2020-04-24 23:36:52 +00:00
|
|
|
pymysql
|
2022-06-16 17:23:12 +00:00
|
|
|
pytestCheckHook
|
2021-07-04 02:40:35 +00:00
|
|
|
python-dateutil
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
disabledTests = [
|
|
|
|
"test_literal_bind"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/kvesteri/sqlalchemy-utils";
|
|
|
|
description = "Various utility functions and datatypes for SQLAlchemy";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ eadwu ];
|
|
|
|
};
|
|
|
|
}
|