diff options
author | Alyssa Ross <hi@alyssa.is> | 2019-04-22 21:15:06 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2019-04-22 21:18:23 +0000 |
commit | b935ae5f3cfb2bb4f9a3746d284f156a6dece505 (patch) | |
tree | 5efe4e2e7a7723a737d0130a333b057c5e76df40 /nixpkgs/pkgs/development/python-modules/papis | |
parent | dc9566e91c9453378c24e98b5737234364670df5 (diff) | |
parent | d26027792812fbfad4d0f451b5f47fdabf7fdeb9 (diff) | |
download | nixlib-b935ae5f3cfb2bb4f9a3746d284f156a6dece505.tar nixlib-b935ae5f3cfb2bb4f9a3746d284f156a6dece505.tar.gz nixlib-b935ae5f3cfb2bb4f9a3746d284f156a6dece505.tar.bz2 nixlib-b935ae5f3cfb2bb4f9a3746d284f156a6dece505.tar.lz nixlib-b935ae5f3cfb2bb4f9a3746d284f156a6dece505.tar.xz nixlib-b935ae5f3cfb2bb4f9a3746d284f156a6dece505.tar.zst nixlib-b935ae5f3cfb2bb4f9a3746d284f156a6dece505.zip |
Merge commit 'd26027792812fbfad4d0f451b5f47fdabf7fdeb9'
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/papis')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/papis/default.nix | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/papis/default.nix b/nixpkgs/pkgs/development/python-modules/papis/default.nix new file mode 100644 index 000000000000..d9be946900cb --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/papis/default.nix @@ -0,0 +1,49 @@ +{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch, xdg_utils +, requests, filetype, pyparsing, configparser, arxiv2bib +, pyyaml, chardet, beautifulsoup4, colorama, bibtexparser +, pylibgen, click, python-slugify, habanero, isbnlib +, prompt_toolkit, pygments +#, optional, dependencies +, jinja2, whoosh, pytest +}: + +buildPythonPackage rec { + pname = "papis"; + version = "0.8.2"; + + # Missing tests on Pypi + src = fetchFromGitHub { + owner = "papis"; + repo = pname; + rev = "v${version}"; + sha256 = "0sa4hpgjvqkjcmp9bjr27b5m5jg4pfspdc8nf1ny80sr0kzn72hb"; + }; + + propagatedBuildInputs = [ + requests filetype pyparsing configparser arxiv2bib + pyyaml chardet beautifulsoup4 colorama bibtexparser + pylibgen click python-slugify habanero isbnlib + prompt_toolkit pygments + # optional dependencies + jinja2 whoosh + ]; + + checkInputs = ([ + pytest + ]) ++ [ + xdg_utils + ]; + + # most of the downloader tests and 4 other tests require a network connection + checkPhase = '' + HOME=$(mktemp -d) pytest papis tests --ignore tests/downloaders \ + -k "not test_get_data and not test_doi_to_data and not test_general and not get_document_url" + ''; + + meta = { + description = "Powerful command-line document and bibliography manager"; + homepage = http://papis.readthedocs.io/en/latest/; + license = lib.licenses.gpl3; + maintainers = with lib.maintainers; [ nico202 teto ]; + }; +} |