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";
|
2022-12-28 21:21:41 +00:00
|
|
|
version = "1.0.1.post0";
|
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";
|
2022-12-28 21:21:41 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-dSvqUXZzr+s/v8QEtqrv6slI7p1akXwAxi68D9ctyuU=";
|
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
|
|
|
};
|
|
|
|
}
|