fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
53 lines
1.1 KiB
Nix
53 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
sqlalchemy,
|
|
setuptools-scm,
|
|
setuptools,
|
|
sphinx,
|
|
pytestCheckHook,
|
|
pytest-sugar,
|
|
pymysql,
|
|
psycopg2,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sqlalchemy-jsonfield";
|
|
version = "1.0.2";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "penguinolog";
|
|
repo = "sqlalchemy_jsonfield";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-4zLXB3UQh6pgQ80KrxkLeC5yiv1R8t2+JmSukmGXr7I=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|