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

40 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, fetchpatch, python3Packages }:
2018-01-08 14:09:53 +01:00
2019-01-08 17:08:12 +01:00
python3Packages.buildPythonApplication rec {
2018-04-06 18:01:59 +02:00
pname = "pubs";
2019-01-08 17:08:12 +01:00
version = "0.8.2";
2018-01-08 14:09:53 +01:00
src = fetchFromGitHub {
owner = "pubs";
repo = "pubs";
rev = "v${version}";
2019-01-08 17:08:12 +01:00
sha256 = "16zwdqfbmlla6906g3a57a4nj8wnl11fq78r20qms717bzv211j0";
2018-01-08 14:09:53 +01:00
};
2019-04-04 09:57:52 +02:00
patches = [
# Fix for bibtexparser 1.1.0
(fetchpatch {
url = https://github.com/pubs/pubs/pull/185/commits/e58ae98b93b8364a07fd5f5f452ba88ad332c948.patch;
sha256 = "1n7zrk119v395jj8wqg8wlymc9l9pq3v752yy3kam9kflc0aashp";
})
# Fix test broken by PyYAML 5.1
(fetchpatch {
url = https://github.com/pubs/pubs/pull/194/commits/c3cb713ae76528eeeaaeb948fe319a76ab3934d8.patch;
sha256 = "05as418m7wzs65839bb91b2jrs8l68z8ldcjcd9cn4b9fcgsf3rk";
})
];
2018-01-08 14:09:53 +01:00
propagatedBuildInputs = with python3Packages; [
2019-01-08 17:08:12 +01:00
argcomplete dateutil configobj feedparser bibtexparser pyyaml requests six beautifulsoup4
2018-01-08 14:09:53 +01:00
];
2019-01-08 17:08:12 +01:00
checkInputs = with python3Packages; [ pyfakefs mock ddt ];
2018-01-08 14:09:53 +01:00
meta = with stdenv.lib; {
description = "Command-line bibliography manager";
homepage = https://github.com/pubs/pubs;
license = licenses.lgpl3;
maintainers = with maintainers; [ gebner ];
};
}