nixpkgs/pkgs/tools/misc/pubs/default.nix

35 lines
919 B
Nix
Raw Normal View History

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; [
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
# 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
'';
meta = with lib; {
2018-01-08 13:09:53 +00:00
description = "Command-line bibliography manager";
homepage = "https://github.com/pubs/pubs";
2018-01-08 13:09:53 +00:00
license = licenses.lgpl3;
maintainers = with maintainers; [ gebner ];
};
}