Unverified Commit 367609fa authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

pinnwand: 1.5.0 -> 1.6.0 (#352869)

parents 9a89fd2d 771d9030
Loading
Loading
Loading
Loading
+17 −20
Original line number Diff line number Diff line
{ 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=";
    })
  ];

  nativeBuildInputs = [
    pdm-pep517
  ];
  build-system = [ 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;
  };
}