commit
3c32910b9b
@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
pythonPackages.buildPythonApplication rec {
|
pythonPackages.buildPythonApplication rec {
|
||||||
pname = "afew";
|
pname = "afew";
|
||||||
version = "1.3.0";
|
version = "2.0.0";
|
||||||
|
|
||||||
src = pythonPackages.fetchPypi {
|
src = pythonPackages.fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "0105glmlkpkjqbz350dxxasvlfx9dk0him9vwbl86andzi106ygz";
|
sha256 = "0j60501nm242idf2ig0h7p6wrg58n5v2p6zfym56v9pbvnbmns0s";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = with pythonPackages; [ sphinx setuptools_scm ];
|
nativeBuildInputs = with pythonPackages; [ sphinx setuptools_scm ];
|
||||||
@ -15,20 +15,23 @@ pythonPackages.buildPythonApplication rec {
|
|||||||
pythonPackages.notmuch chardet dkimpy
|
pythonPackages.notmuch chardet dkimpy
|
||||||
] ++ stdenv.lib.optional (!pythonPackages.isPy3k) subprocess32;
|
] ++ stdenv.lib.optional (!pythonPackages.isPy3k) subprocess32;
|
||||||
|
|
||||||
postBuild = ''
|
|
||||||
make -C docs man
|
|
||||||
'';
|
|
||||||
|
|
||||||
postInstall = ''
|
|
||||||
mandir="$out/share/man/man1"
|
|
||||||
mkdir -p "$mandir"
|
|
||||||
cp docs/build/man/* "$mandir"
|
|
||||||
'';
|
|
||||||
|
|
||||||
makeWrapperArgs = [
|
makeWrapperArgs = [
|
||||||
''--prefix PATH ':' "${notmuch}/bin"''
|
''--prefix PATH ':' "${notmuch}/bin"''
|
||||||
];
|
];
|
||||||
|
|
||||||
|
outputs = [ "out" "doc" ];
|
||||||
|
|
||||||
|
postBuild = ''
|
||||||
|
python setup.py build_sphinx -b html,man
|
||||||
|
'';
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
install -D -v -t $out/share/man/man1 build/sphinx/man/*
|
||||||
|
mkdir -p $out/share/doc/afew
|
||||||
|
cp -R build/sphinx/html/* $out/share/doc/afew
|
||||||
|
'';
|
||||||
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = https://github.com/afewmail/afew;
|
homepage = https://github.com/afewmail/afew;
|
||||||
description = "An initial tagging script for notmuch mail";
|
description = "An initial tagging script for notmuch mail";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user