Skip to content

Commit

Permalink
python312Packages.sqlalchemy-json: refactor (NixOS#373361)
Browse files Browse the repository at this point in the history
  • Loading branch information
FliegendeWurst authored Mar 2, 2025
2 parents bd92223 + 303a115 commit 1fe2687
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions pkgs/development/python-modules/sqlalchemy-json/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,14 @@
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
setuptools,
sqlalchemy,
}:

let
version = "0.7.0";
in
buildPythonPackage {
buildPythonPackage rec {
pname = "sqlalchemy-json";
inherit version;

disabled = pythonOlder "3.6";
version = "0.7.0";
pyproject = true;

src = fetchFromGitHub {
owner = "edelooff";
Expand All @@ -23,15 +19,19 @@ buildPythonPackage {
hash = "sha256-Is3DznojvpWYFSDutzCxRLceQMIiS3ZIg0c//MIOF+s=";
};

propagatedBuildInputs = [ sqlalchemy ];
build-system = [ setuptools ];

dependencies = [ sqlalchemy ];

pythonImportsCheck = [ "sqlalchemy_json" ];

nativeCheckInputs = [ pytestCheckHook ];

meta = with lib; {
meta = {
description = "Full-featured JSON type with mutation tracking for SQLAlchemy";
homepage = "https://github.com/edelooff/sqlalchemy-json";
changelog = "https://github.com/edelooff/sqlalchemy-json/tree/v${version}#changelog";
license = licenses.bsd2;
maintainers = with maintainers; [ augustebaum ];
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ augustebaum ];
};
}

0 comments on commit 1fe2687

Please sign in to comment.