2022-04-17 16:01:02 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
}:
|
2018-01-08 13:09:53 +00:00
|
|
|
|
2022-04-17 16:01:02 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2018-04-06 16:01:59 +00:00
|
|
|
pname = "pubs";
|
2022-04-17 16:01:02 +00:00
|
|
|
version = "0.9.0";
|
2018-01-08 13:09:53 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pubs";
|
|
|
|
repo = "pubs";
|
|
|
|
rev = "v${version}";
|
2022-04-17 16:01:02 +00:00
|
|
|
hash = "sha256-U/9MLqfXrzYVGttFSafw4pYDy26WgdsJMCxciZzO1pw=";
|
2018-01-08 13:09:53 +00:00
|
|
|
};
|
|
|
|
|
2022-04-17 16:01:02 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
pyyaml
|
|
|
|
bibtexparser
|
|
|
|
python-dateutil
|
|
|
|
six
|
|
|
|
requests
|
|
|
|
configobj
|
2020-08-21 11:06:22 +00:00
|
|
|
beautifulsoup4
|
2022-04-17 16:01:02 +00:00
|
|
|
feedparser
|
|
|
|
argcomplete
|
2018-01-08 13:09:53 +00:00
|
|
|
];
|
|
|
|
|
2022-04-17 16:01:02 +00:00
|
|
|
checkInputs = with python3.pkgs; [
|
|
|
|
pyfakefs
|
|
|
|
mock
|
|
|
|
ddt
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# Disabling git tests because they expect git to be preconfigured
|
|
|
|
# with the user's details. See
|
|
|
|
# https://github.com/NixOS/nixpkgs/issues/94663
|
|
|
|
"tests/test_git.py"
|
|
|
|
];
|
2018-01-08 13:09:53 +00:00
|
|
|
|
2022-04-17 16:01:02 +00:00
|
|
|
disabledTests = [
|
|
|
|
# https://github.com/pubs/pubs/issues/276
|
|
|
|
"test_readme"
|
|
|
|
];
|
2020-08-21 11:06:22 +00:00
|
|
|
|
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";
|
2022-04-17 16:01:02 +00:00
|
|
|
license = licenses.lgpl3Only;
|
|
|
|
maintainers = with maintainers; [ gebner dotlambda ];
|
2018-01-08 13:09:53 +00:00
|
|
|
};
|
|
|
|
}
|