94427deb9d
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
58 lines
1.2 KiB
Nix
58 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, sqlalchemy
|
|
, setuptools-scm
|
|
, setuptools
|
|
, sphinx
|
|
, pytestCheckHook
|
|
, pytest-sugar
|
|
, pymysql
|
|
, psycopg2
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sqlalchemy-jsonfield";
|
|
version = "1.0.1.post0+2023-04-24";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "penguinolog";
|
|
repo = "sqlalchemy_jsonfield";
|
|
rev = "a1efda9755055c1d382257fb4ef78006b713d07e";
|
|
hash = "sha256-6l4LEGpA8dKPw8M4quStd1nWyshMNiwQojBCxKwRRXA=";
|
|
};
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = "v${version}";
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
sqlalchemy
|
|
setuptools
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-sugar
|
|
pymysql
|
|
psycopg2
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"sqlalchemy_jsonfield"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "SQLALchemy JSONField implementation for storing dicts at SQL independently from JSON type support";
|
|
homepage = "https://github.com/penguinolog/sqlalchemy_jsonfield";
|
|
changelog = "https://github.com/penguinolog/sqlalchemy_jsonfield/releases/tag/${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ ivan-tkatchev ];
|
|
};
|
|
}
|