From 771d9030faf5f61213b30f04528d46517def345f Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 1 Nov 2024 13:42:20 +0100 Subject: [PATCH] pinnwand: 1.5.0 -> 1.6.0 https://github.com/supakeen/pinnwand/releases/tag/v1.6.0 --- pkgs/servers/pinnwand/default.nix | 37 ++++++++++++++----------------- 1 file changed, 17 insertions(+), 20 deletions(-) diff --git a/pkgs/servers/pinnwand/default.nix b/pkgs/servers/pinnwand/default.nix index bbed9967c2ac..1b7ac24eadfb 100644 --- a/pkgs/servers/pinnwand/default.nix +++ b/pkgs/servers/pinnwand/default.nix @@ -1,40 +1,24 @@ { lib , python3 , fetchFromGitHub -, fetchpatch2 , nixosTests }: with python3.pkgs; buildPythonApplication rec { pname = "pinnwand"; - version = "1.5.0"; + version = "1.6.0"; pyproject = true; src = fetchFromGitHub { owner = "supakeen"; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-1Q/jRjFUoJb1S3cGF8aVuguWMJwYrAtXdKpZV8nRK0k="; + hash = "sha256-oB7Dd1iVzGqr+5nG7BfZuwOQUgUnmg6ptQDZPGH7P5E="; }; - patches = [ - (fetchpatch2 { - # fix entrypoint - url = "https://github.com/supakeen/pinnwand/commit/7868b4b4dcd57066dd0023b5a3cbe91fc5a0a858.patch"; - hash = "sha256-Fln9yJNRvNPHZ0JIgzmwwjUpAHMu55NaEb8ZVDWhLyE="; - }) - ]; + build-system = [ pdm-pep517 ]; - nativeBuildInputs = [ - pdm-pep517 - ]; - - pythonRelaxDeps = [ - "docutils" - "sqlalchemy" - ]; - - propagatedBuildInputs = [ + dependencies = [ click docutils pygments @@ -47,7 +31,19 @@ with python3.pkgs; buildPythonApplication rec { ]; nativeCheckInputs = [ + gitpython + pytest-asyncio + pytest-cov-stub + pytest-html + pytest-playwright pytestCheckHook + toml + urllib3 + ]; + + disabledTestPaths = [ + # out-of-date browser tests + "test/e2e" ]; __darwinAllowLocalNetworking = true; @@ -61,6 +57,7 @@ with python3.pkgs; buildPythonApplication rec { license = licenses.mit; maintainers = with maintainers; [ hexa ]; mainProgram = "pinnwand"; + platforms = platforms.linux; }; }