depot/third_party/nixpkgs/pkgs/development/python-modules/sqlalchemy-jsonfield/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

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 ];
};
}