python312Packages.sqlalchemy-json: refactor

+12 -12
+12 -12
pkgs/development/python-modules/sqlalchemy-json/default.nix
··· 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 - pythonOlder, 7 sqlalchemy, 8 }: 9 10 - let 11 - version = "0.7.0"; 12 - in 13 - buildPythonPackage { 14 pname = "sqlalchemy-json"; 15 - inherit version; 16 - 17 - disabled = pythonOlder "3.6"; 18 19 src = fetchFromGitHub { 20 owner = "edelooff"; ··· 23 hash = "sha256-Is3DznojvpWYFSDutzCxRLceQMIiS3ZIg0c//MIOF+s="; 24 }; 25 26 - propagatedBuildInputs = [ sqlalchemy ]; 27 28 nativeCheckInputs = [ pytestCheckHook ]; 29 30 - meta = with lib; { 31 description = "Full-featured JSON type with mutation tracking for SQLAlchemy"; 32 homepage = "https://github.com/edelooff/sqlalchemy-json"; 33 changelog = "https://github.com/edelooff/sqlalchemy-json/tree/v${version}#changelog"; 34 - license = licenses.bsd2; 35 - maintainers = with maintainers; [ augustebaum ]; 36 }; 37 }
··· 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 + setuptools, 7 sqlalchemy, 8 }: 9 10 + buildPythonPackage rec { 11 pname = "sqlalchemy-json"; 12 + version = "0.7.0"; 13 + pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "edelooff"; ··· 19 hash = "sha256-Is3DznojvpWYFSDutzCxRLceQMIiS3ZIg0c//MIOF+s="; 20 }; 21 22 + build-system = [ setuptools ]; 23 + 24 + dependencies = [ sqlalchemy ]; 25 + 26 + pythonImportsCheck = [ "sqlalchemy_json" ]; 27 28 nativeCheckInputs = [ pytestCheckHook ]; 29 30 + meta = { 31 description = "Full-featured JSON type with mutation tracking for SQLAlchemy"; 32 homepage = "https://github.com/edelooff/sqlalchemy-json"; 33 changelog = "https://github.com/edelooff/sqlalchemy-json/tree/v${version}#changelog"; 34 + license = lib.licenses.bsd2; 35 + maintainers = with lib.maintainers; [ augustebaum ]; 36 }; 37 }