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";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "1.0.2";
|
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";
|
2024-01-02 11:29:13 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-4zLXB3UQh6pgQ80KrxkLeC5yiv1R8t2+JmSukmGXr7I=";
|
2021-07-14 22:03:04 +00:00
|
|
|
};
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|