2021-07-14 22:03:04 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, sqlalchemy
|
|
|
|
, setuptools-scm
|
|
|
|
, setuptools
|
|
|
|
, sphinx
|
2022-11-21 17:40:18 +00:00
|
|
|
, pytestCheckHook
|
2021-07-14 22:03:04 +00:00
|
|
|
, pytest-sugar
|
|
|
|
, pymysql
|
2022-11-21 17:40:18 +00:00
|
|
|
, psycopg2
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
2021-07-14 22:03:04 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sqlalchemy-jsonfield";
|
|
|
|
version = "1.0.0";
|
2022-11-21 17:40:18 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-07-14 22:03:04 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "penguinolog";
|
|
|
|
repo = "sqlalchemy_jsonfield";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "015pl4z84spfw8389hk1szlm37jgw2basvbmzmkacdqi0685zx24";
|
|
|
|
};
|
|
|
|
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = "v${version}";
|
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
sqlalchemy
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-sugar
|
|
|
|
pymysql
|
|
|
|
psycopg2
|
|
|
|
];
|
2021-07-14 22:03:04 +00:00
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"sqlalchemy_jsonfield"
|
|
|
|
];
|
2021-07-14 22:03:04 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/penguinolog/sqlalchemy_jsonfield";
|
|
|
|
description = "SQLALchemy JSONField implementation for storing dicts at SQL independently from JSON type support";
|
|
|
|
license = licenses.asl20;
|
2022-11-21 17:40:18 +00:00
|
|
|
maintainers = with maintainers; [ ivan-tkatchev ];
|
2021-07-14 22:03:04 +00:00
|
|
|
};
|
|
|
|
}
|