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";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "1.0.1.post0+2023-04-24";
|
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";
|
2023-05-24 13:37:59 +00:00
|
|
|
rev = "a1efda9755055c1d382257fb4ef78006b713d07e";
|
|
|
|
hash = "sha256-6l4LEGpA8dKPw8M4quStd1nWyshMNiwQojBCxKwRRXA=";
|
2021-07-14 22:03:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = "v${version}";
|
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
sqlalchemy
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-11-21 17:40:18 +00:00
|
|
|
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; {
|
|
|
|
description = "SQLALchemy JSONField implementation for storing dicts at SQL independently from JSON type support";
|
2022-12-28 21:21:41 +00:00
|
|
|
homepage = "https://github.com/penguinolog/sqlalchemy_jsonfield";
|
|
|
|
changelog = "https://github.com/penguinolog/sqlalchemy_jsonfield/releases/tag/${version}";
|
2021-07-14 22:03:04 +00:00
|
|
|
license = licenses.asl20;
|
2022-11-21 17:40:18 +00:00
|
|
|
maintainers = with maintainers; [ ivan-tkatchev ];
|
2021-07-14 22:03:04 +00:00
|
|
|
};
|
|
|
|
}
|