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

35 lines
919 B
Nix
Raw Normal View History

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