mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-11 15:08:33 +01:00
5f03d6bf4d
it's an application, not a python module Also, remove name attribute. Build with python 3 by default. afew: make setuptools_scm a buildInput afew: don't set SETUPTOOLS_SCM_PRETEND_VERSION anymore we fetch from pypi, with version info properly set, so this shouldn't be an issue. afew: set license afew: add notmuch binary to PATH it seems afew calls "notmuch new" in MailMover.py afew: don't set LD_LIBRARY_PATH the library is already hardcoded pythonPackages.notmuch's globals.py
29 lines
776 B
Nix
29 lines
776 B
Nix
{ stdenv, pythonPackages, notmuch }:
|
|
|
|
pythonPackages.buildPythonApplication rec {
|
|
pname = "afew";
|
|
version = "1.2.0";
|
|
|
|
src = pythonPackages.fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "121w7bd53xyibllxxbfykjj76n81kn1vgjqd22izyh67y8qyyk5r";
|
|
};
|
|
|
|
buildInputs = with pythonPackages; [ setuptools_scm ];
|
|
|
|
propagatedBuildInputs = with pythonPackages; [
|
|
pythonPackages.notmuch chardet
|
|
] ++ stdenv.lib.optional (!pythonPackages.isPy3k) subprocess32;
|
|
|
|
makeWrapperArgs = [
|
|
''--prefix PATH ':' "${notmuch}/bin"''
|
|
];
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://github.com/afewmail/afew;
|
|
description = "An initial tagging script for notmuch mail";
|
|
license = licenses.isc;
|
|
maintainers = with maintainers; [ garbas andir flokli ];
|
|
};
|
|
}
|