depot/third_party/nixpkgs/pkgs/development/python-modules/sqlalchemy-jsonfield/default.nix
Default email 01ed8ef136 Project import generated by Copybara.
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
2022-11-21 19:40:18 +02:00

57 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.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "penguinolog";
repo = "sqlalchemy_jsonfield";
rev = version;
sha256 = "015pl4z84spfw8389hk1szlm37jgw2basvbmzmkacdqi0685zx24";
};
SETUPTOOLS_SCM_PRETEND_VERSION = "v${version}";
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
sqlalchemy
setuptools
];
checkInputs = [
pytestCheckHook
pytest-sugar
pymysql
psycopg2
];
pythonImportsCheck = [
"sqlalchemy_jsonfield"
];
meta = with lib; {
homepage = "https://github.com/penguinolog/sqlalchemy_jsonfield";
description = "SQLALchemy JSONField implementation for storing dicts at SQL independently from JSON type support";
license = licenses.asl20;
maintainers = with maintainers; [ ivan-tkatchev ];
};
}