alot: 0.9.1 -> 0.10 (#139603)

* python3Packages.alot: 0.9.1 -> 0.10

* python3Packages.alot: exclude some tests but run the test suite

Some test are broken in the Nix sandbox.  This way it is possible to at
least run the test suite and catch errors from the other tests.

This approach is documented in
https://github.com/NixOS/nixpkgs/blob/d6c2bb7/doc/languages-frameworks/python.section.md#using-pytestcheckhook-using-pytestcheckhook
main
Lucas Hoffmann 3 years ago committed by GitHub
parent 8f882943a0
commit 7997c7447c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 21
      pkgs/development/python-modules/alot/default.nix

@ -1,11 +1,11 @@
{ lib, buildPythonPackage, python, fetchFromGitHub, isPy3k
, notmuch, urwid, urwidtrees, twisted, python_magic, configobj, mock, file, gpgme
{ lib, buildPythonPackage, python, fetchFromGitHub, isPy3k, pytestCheckHook
, notmuch2, urwid, urwidtrees, twisted, python_magic, configobj, mock, file, gpgme
, service-identity, gnupg, sphinx, gawk, procps, future , withManpage ? false
}:
buildPythonPackage rec {
pname = "alot";
version = "0.9.1";
version = "0.10";
outputs = [ "out" ] ++ lib.optional withManpage "man";
disabled = !isPy3k;
@ -14,7 +14,7 @@ buildPythonPackage rec {
owner = "pazz";
repo = "alot";
rev = version;
sha256 = "0s94m17yph1gq9f2svipb3bbwbw1s4j3zf2xkg5h91006v8286r6";
sha256 = "sha256-1reAq8X9VwaaZDY5UfvcFzHDKd71J88CqJgH3+ANjis=";
};
postPatch = ''
@ -24,7 +24,7 @@ buildPythonPackage rec {
nativeBuildInputs = lib.optional withManpage sphinx;
propagatedBuildInputs = [
notmuch
notmuch2
urwid
urwidtrees
twisted
@ -35,11 +35,14 @@ buildPythonPackage rec {
gpgme
];
# some twisted tests need the network (test_env_set... )
doCheck = false;
postBuild = lib.optionalString withManpage "make -C docs man";
checkInputs = [ gawk future mock gnupg procps ];
checkInputs = [ gawk future mock gnupg procps pytestCheckHook ];
# some twisted tests need internet access
disabledTests = [
"test_env_set"
"test_no_spawn_no_stdin_attached"
];
postInstall = let
completionPython = python.withPackages (ps: [ ps.configobj ]);
@ -61,7 +64,7 @@ buildPythonPackage rec {
meta = with lib; {
homepage = "https://github.com/pazz/alot";
description = "Terminal MUA using notmuch mail";
license = licenses.gpl3;
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ edibopp ];
};

Loading…
Cancel
Save