papis: init at 0.5.2

This commit is contained in:
Nicolò Balzarotti 2018-02-09 13:16:36 +01:00
parent 3c3bc83c39
commit dd4144ed62
2 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,44 @@
{ buildPythonApplication, lib, fetchFromGitHub
, argcomplete, arxiv2bib, beautifulsoup4, bibtexparser
, configparser, habanero, papis-python-rofi, pylibgen
, prompt_toolkit, pyparser, python_magic, pyyaml
, requests, unidecode, urwid, vobject, tkinter
, vim
}:
buildPythonApplication rec {
pname = "papis";
version = "0.5.2";
# Missing tests on Pypi
src = fetchFromGitHub {
owner = "alejandrogallo";
repo = pname;
rev = "v${version}";
sha256 = "0cw6ajdaknijka3j2bkkkn0bcxqifk825kq0a0rdbbmc6661pgxb";
};
postPatch = "sed -i 's/configparser>=3.0.0/# configparser>=3.0.0/' setup.py";
propagatedBuildInputs = [
argcomplete arxiv2bib beautifulsoup4 bibtexparser
configparser habanero papis-python-rofi pylibgen
prompt_toolkit pyparser python_magic pyyaml
requests unidecode urwid vobject tkinter
vim
];
# Papis tries to create the config folder under $HOME during the tests
preCheck = ''
mkdir -p check-phase
export HOME=$(pwd)/check-phase
'';
meta = {
description = "Powerful command-line document and bibliography manager";
homepage = http://papis.readthedocs.io/en/latest/;
license = lib.licenses.gpl3;
maintainers = [ lib.maintainers.nico202 ];
};
}

View File

@ -13985,6 +13985,8 @@ with pkgs;
papirus-icon-theme = callPackage ../data/icons/papirus-icon-theme { };
papis = python3Packages.callPackage ../tools/misc/papis { };
pecita = callPackage ../data/fonts/pecita {};
paratype-pt-mono = callPackage ../data/fonts/paratype-pt/mono.nix {};