Unverified Commit 1995be70 authored by Matthieu Coudron's avatar Matthieu Coudron Committed by GitHub
Browse files

alot: fix build, sync python dependencies (#444355)

parents a09d529c d003590a
Loading
Loading
Loading
Loading
+18 −16
Original line number Diff line number Diff line
{
  lib,
  python311,
  python3,
  python3Packages,
  fetchFromGitHub,
  file,
  gnupg,
  gawk,
  procps,
@@ -10,8 +10,7 @@
  withManpage ? false,
}:

with python311.pkgs;
buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
  pname = "alot";
  version = "0.11";
  pyproject = true;
@@ -35,32 +34,35 @@ buildPythonApplication rec {
      --replace-fail /usr/share "$out/share"
  '';

  build-system = [
  build-system =
    with python3Packages;
    [
      setuptools
      setuptools-scm
    ]
    ++ lib.optional withManpage sphinx;

  dependencies = [
  dependencies = with python3Packages; [
    configobj
    file
    gpgme
    notmuch2
    python-magic
    service-identity
    standard-mailcap
    twisted
    urwid
    urwidtrees
  ];

  nativeCheckInputs = [
    future
    gawk
    gnupg
    mock
    notmuch
    procps
  ]
  ++ (with python3Packages; [
    pytestCheckHook
    notmuch
  ];
    mock
  ]);

  postBuild = lib.optionalString withManpage [
    "make -C docs man"
@@ -76,7 +78,7 @@ buildPythonApplication rec {

  postInstall =
    let
      completionPython = python.withPackages (ps: [ ps.configobj ]);
      completionPython = python3.withPackages (ps: [ ps.configobj ]);
    in
    lib.optionalString withManpage ''
      mkdir -p $out/man