5ca88bfbb9
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
sqlalchemy,
|
|
setuptools-scm,
|
|
setuptools,
|
|
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 ];
|
|
};
|
|
}
|