Loading pkgs/by-name/pi/pinnwand/package.nix +7 −6 Original line number Diff line number Diff line { lib, python3, python3Packages, fetchFromGitHub, nixosTests, }: with python3.pkgs; with python3Packages; buildPythonApplication (finalAttrs: { pname = "pinnwand"; version = "1.6.0"; version = "1.6.1"; pyproject = true; src = fetchFromGitHub { owner = "supakeen"; repo = "pinnwand"; tag = "v${finalAttrs.version}"; hash = "sha256-oB7Dd1iVzGqr+5nG7BfZuwOQUgUnmg6ptQDZPGH7P5E="; hash = "sha256-Abj68lJn2qjL1jb+cVzkoc/RYKA6d5tYOPlEwqST0tY="; }; build-system = [ pdm-pep517 ]; build-system = [ pdm-backend ]; dependencies = [ click Loading @@ -27,6 +27,7 @@ buildPythonApplication (finalAttrs: { pygments-better-html python-dotenv sqlalchemy sqlalchemy-utc token-bucket tomli tornado Loading @@ -39,7 +40,7 @@ buildPythonApplication (finalAttrs: { pytest-html pytest-playwright pytestCheckHook toml tomli-w urllib3 ]; Loading pkgs/development/python-modules/sqlalchemy-utc/default.nix 0 → 100644 +50 −0 Original line number Diff line number Diff line { lib, buildPythonPackage, fetchFromGitHub, setuptools, sqlalchemy, pytestCheckHook, }: buildPythonPackage (finalAttrs: { pname = "sqlalchemy-utc"; version = "0.14.0"; pyproject = true; src = fetchFromGitHub { owner = "spoqa"; repo = "sqlalchemy-utc"; tag = finalAttrs.version; hash = "sha256-ZtUuwUDgd/ngOQoWu8IgOldTbTGoFbv5Y0Hyha1KTrE="; }; patches = [ # https://github.com/spoqa/sqlalchemy-utc/pull/20 ./sqlalchemy2-compat.patch ]; build-system = [ setuptools ]; dependencies = [ sqlalchemy ]; nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "sqlalchemy_utc" ]; meta = { description = "SQLAlchemy type to store aware datetime values"; homepage = "https://github.com/spoqa/sqlalchemy-utc"; changelog = "https://github.com/spoqa/sqlalchemy-utc/blob/${finalAttrs.src.rev}/CHANGES.rst"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ hexa ]; }; }) pkgs/development/python-modules/sqlalchemy-utc/sqlalchemy2-compat.patch 0 → 100644 +13 −0 Original line number Diff line number Diff line diff --git a/tests/test_now.py b/tests/test_now.py index 93470e5..8ea9ee6 100644 --- a/tests/test_now.py +++ b/tests/test_now.py @@ -28,7 +28,7 @@ def fx_connection(fx_engine): def test_utcnow_timezone(fx_connection): fx_connection.execute(TABLE.insert(), [{}]) - rows = fx_connection.execute(select([TABLE])).fetchall() + rows = fx_connection.execute(select(TABLE)).fetchall() server_now = rows[0].time local_now = datetime.datetime.now(utc) assert server_now.tzinfo is not None pkgs/top-level/python-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -18344,6 +18344,8 @@ self: super: with self; { sqlalchemy-mixins = callPackage ../development/python-modules/sqlalchemy-mixins { }; sqlalchemy-utc = callPackage ../development/python-modules/sqlalchemy-utc { }; sqlalchemy-utils = callPackage ../development/python-modules/sqlalchemy-utils { }; sqlalchemy_1_3 = callPackage ../development/python-modules/sqlalchemy/1_3.nix { }; Loading
pkgs/by-name/pi/pinnwand/package.nix +7 −6 Original line number Diff line number Diff line { lib, python3, python3Packages, fetchFromGitHub, nixosTests, }: with python3.pkgs; with python3Packages; buildPythonApplication (finalAttrs: { pname = "pinnwand"; version = "1.6.0"; version = "1.6.1"; pyproject = true; src = fetchFromGitHub { owner = "supakeen"; repo = "pinnwand"; tag = "v${finalAttrs.version}"; hash = "sha256-oB7Dd1iVzGqr+5nG7BfZuwOQUgUnmg6ptQDZPGH7P5E="; hash = "sha256-Abj68lJn2qjL1jb+cVzkoc/RYKA6d5tYOPlEwqST0tY="; }; build-system = [ pdm-pep517 ]; build-system = [ pdm-backend ]; dependencies = [ click Loading @@ -27,6 +27,7 @@ buildPythonApplication (finalAttrs: { pygments-better-html python-dotenv sqlalchemy sqlalchemy-utc token-bucket tomli tornado Loading @@ -39,7 +40,7 @@ buildPythonApplication (finalAttrs: { pytest-html pytest-playwright pytestCheckHook toml tomli-w urllib3 ]; Loading
pkgs/development/python-modules/sqlalchemy-utc/default.nix 0 → 100644 +50 −0 Original line number Diff line number Diff line { lib, buildPythonPackage, fetchFromGitHub, setuptools, sqlalchemy, pytestCheckHook, }: buildPythonPackage (finalAttrs: { pname = "sqlalchemy-utc"; version = "0.14.0"; pyproject = true; src = fetchFromGitHub { owner = "spoqa"; repo = "sqlalchemy-utc"; tag = finalAttrs.version; hash = "sha256-ZtUuwUDgd/ngOQoWu8IgOldTbTGoFbv5Y0Hyha1KTrE="; }; patches = [ # https://github.com/spoqa/sqlalchemy-utc/pull/20 ./sqlalchemy2-compat.patch ]; build-system = [ setuptools ]; dependencies = [ sqlalchemy ]; nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "sqlalchemy_utc" ]; meta = { description = "SQLAlchemy type to store aware datetime values"; homepage = "https://github.com/spoqa/sqlalchemy-utc"; changelog = "https://github.com/spoqa/sqlalchemy-utc/blob/${finalAttrs.src.rev}/CHANGES.rst"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ hexa ]; }; })
pkgs/development/python-modules/sqlalchemy-utc/sqlalchemy2-compat.patch 0 → 100644 +13 −0 Original line number Diff line number Diff line diff --git a/tests/test_now.py b/tests/test_now.py index 93470e5..8ea9ee6 100644 --- a/tests/test_now.py +++ b/tests/test_now.py @@ -28,7 +28,7 @@ def fx_connection(fx_engine): def test_utcnow_timezone(fx_connection): fx_connection.execute(TABLE.insert(), [{}]) - rows = fx_connection.execute(select([TABLE])).fetchall() + rows = fx_connection.execute(select(TABLE)).fetchall() server_now = rows[0].time local_now = datetime.datetime.now(utc) assert server_now.tzinfo is not None
pkgs/top-level/python-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -18344,6 +18344,8 @@ self: super: with self; { sqlalchemy-mixins = callPackage ../development/python-modules/sqlalchemy-mixins { }; sqlalchemy-utc = callPackage ../development/python-modules/sqlalchemy-utc { }; sqlalchemy-utils = callPackage ../development/python-modules/sqlalchemy-utils { }; sqlalchemy_1_3 = callPackage ../development/python-modules/sqlalchemy/1_3.nix { };