From b19edaec41ea588f14e4c24157a7ccfcc10d5f34 Mon Sep 17 00:00:00 2001 From: Aldo Borrero <82811+aldoborrero@users.noreply.github.com> Date: Wed, 25 Oct 2023 16:48:59 +0200 Subject: [PATCH] python311Packages.sqlite-migrate: init at version 0.1a2 --- .../python-modules/sqlite-migrate/default.nix | 45 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 47 insertions(+) create mode 100644 pkgs/development/python-modules/sqlite-migrate/default.nix diff --git a/pkgs/development/python-modules/sqlite-migrate/default.nix b/pkgs/development/python-modules/sqlite-migrate/default.nix new file mode 100644 index 000000000000..b19d3e590f52 --- /dev/null +++ b/pkgs/development/python-modules/sqlite-migrate/default.nix @@ -0,0 +1,45 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pytestCheckHook +, pythonOlder +, setuptools +, sqlite-utils +}: + +buildPythonPackage rec { + pname = "sqlite-migrate"; + version = "0.1a2"; + pyproject = true; + + disabled = pythonOlder "3.8"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-wztAqe3TW0SQ4JX1XPWeA4KNJci5c3fNih97cmlPwRE="; + }; + + nativeBuildInputs = [ + setuptools + ]; + + propagatedBuildInputs = [ + sqlite-utils + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "sqlite_migrate" + ]; + + meta = with lib; { + description = "A simple database migration system for SQLite, based on sqlite-utils"; + homepage = "https://github.com/simonw/sqlite-migrate"; + changelog = "https://github.com/simonw/sqlite-migrate/releases/tag/${version}"; + license = licenses.asl20; + maintainers = with maintainers; [ aldoborrero ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 133136237184..f5b4d4c6f443 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -13323,6 +13323,8 @@ self: super: with self; { sqlitedict = callPackage ../development/python-modules/sqlitedict { }; + sqlite-migrate = callPackage ../development/python-modules/sqlite-migrate { }; + sqlite-fts4 = callPackage ../development/python-modules/sqlite-fts4 { }; sqlite-utils = callPackage ../development/python-modules/sqlite-utils { };