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

35 lines
941 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, fetchpatch, python3Packages }:
2018-01-08 13:09:53 +00:00
2019-01-08 16:08:12 +00:00
python3Packages.buildPythonApplication rec {
2018-04-06 17:01:59 +01:00
pname = "pubs";
2020-08-21 12:06:22 +01: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 12:06:22 +01:00
sha256 = "0npgsyxj7kby5laznk5ilkrychs3i68y57gphwk48w8k9fvnl3zc";
2018-01-08 13:09:53 +00:00
};
propagatedBuildInputs = with python3Packages; [
2020-08-21 12:06:22 +01:00
argcomplete dateutil configobj feedparser bibtexparser pyyaml requests six
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 12:06:22 +01:00
# Disabling git tests because they expect git to be preconfigured
# with the user's details. See
# 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 ];
};
}