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