Commit 9787a44e authored by Robert Schütz's avatar Robert Schütz
Browse files

khal: modernize

parent 6cb9e538
Loading
Loading
Loading
Loading
+25 −16
Original line number Diff line number Diff line
{ lib
, stdenv
, fetchFromGitHub
, glibcLocales
, installShellFiles
, python3
{
  lib,
  stdenv,
  fetchFromGitHub,
  glibcLocales,
  installShellFiles,
  python3,
}:

let
@@ -40,16 +41,17 @@ python.pkgs.buildPythonApplication rec {
    hash = "sha256-YP2kQ/qXPDwvFvlHf+A2Ymvk49dmt5tAnTaOhrOV92M=";
  };

  build-system = with python.pkgs; [
    setuptools
    setuptools-scm
  ];

  nativeBuildInputs = [
    glibcLocales
    installShellFiles
  ] ++ (with python.pkgs; [
    setuptools-scm
    sphinx
    sphinxcontrib-newsfeed
  ]);
  ];

  propagatedBuildInputs = with python.pkgs;[
  dependencies = with python.pkgs; [
    atomicwrites
    click
    click-log
@@ -83,7 +85,14 @@ python.pkgs.buildPythonApplication rec {
      --fish <(_KHAL_COMPLETE=fish_source $out/bin/khal)

    # man page
    PATH="${python3.withPackages (ps: with ps; [ sphinx sphinxcontrib-newsfeed ])}/bin:$PATH" \
    PATH="${
      python3.withPackages (
        ps: with ps; [
          sphinx
          sphinxcontrib-newsfeed
        ]
      )
    }/bin:$PATH" \
      make -C doc man
    installManPage doc/build/man/khal.1

@@ -93,7 +102,7 @@ python.pkgs.buildPythonApplication rec {

  doCheck = !stdenv.hostPlatform.isAarch64;

  LC_ALL = "en_US.UTF-8";
  env.LC_ALL = "en_US.UTF-8";

  disabledTests = [
    # timing based