2021-02-16 22:25:53 +00:00
|
|
|
{ lib, fetchFromGitHub, python3Packages }:
|
2018-01-08 13:09:53 +00:00
|
|
|
|
2019-01-08 16:08:12 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2018-04-06 16:01:59 +00:00
|
|
|
pname = "pubs";
|
2020-08-21 11:06:22 +00:00
|
|
|
version = "0.8.3";
|
2018-01-08 13:09:53 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pubs";
|
|
|
|
repo = "pubs";
|
|
|
|
rev = "v${version}";
|
2020-08-21 11:06:22 +00:00
|
|
|
sha256 = "0npgsyxj7kby5laznk5ilkrychs3i68y57gphwk48w8k9fvnl3zc";
|
2018-01-08 13:09:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
2021-01-19 21:20:11 +00:00
|
|
|
argcomplete dateutil configobj feedparser bibtexparser pyyaml requests six
|
2020-08-21 11:06:22 +00:00
|
|
|
beautifulsoup4
|
2018-01-08 13:09:53 +00:00
|
|
|
];
|
|
|
|
|
2019-01-08 16:08:12 +00:00
|
|
|
checkInputs = with python3Packages; [ pyfakefs mock ddt ];
|
2018-01-08 13:09:53 +00:00
|
|
|
|
2020-08-21 11:06:22 +00:00
|
|
|
# Disabling git tests because they expect git to be preconfigured
|
2021-01-19 21:20:11 +00:00
|
|
|
# with the user's details. See
|
2020-08-21 11:06:22 +00:00
|
|
|
# https://github.com/NixOS/nixpkgs/issues/94663
|
|
|
|
preCheck = ''
|
|
|
|
rm tests/test_git.py
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-01-08 13:09:53 +00:00
|
|
|
description = "Command-line bibliography manager";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/pubs/pubs";
|
2018-01-08 13:09:53 +00:00
|
|
|
license = licenses.lgpl3;
|
|
|
|
maintainers = with maintainers; [ gebner ];
|
|
|
|
};
|
|
|
|
}
|