e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
56 lines
1.1 KiB
Nix
56 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 ];
|
|
};
|
|
}
|