lol
1{ stdenv, fetchFromGitHub, python3Packages }:
2
3python3Packages.buildPythonApplication rec {
4 name = "pubs-${version}";
5 version = "0.7.0";
6
7 src = fetchFromGitHub {
8 owner = "pubs";
9 repo = "pubs";
10 rev = "v${version}";
11 sha256 = "0n5wbjx9wqy6smfg625mhma739jyg7c92766biaiffp0a2bzr475";
12 };
13
14 propagatedBuildInputs = with python3Packages; [
15 dateutil configobj bibtexparser pyyaml requests beautifulsoup4
16 pyfakefs ddt
17 ];
18
19 preCheck = ''
20 # API tests require networking
21 rm tests/test_apis.py
22
23 # pyfakefs works weirdly in the sandbox
24 export HOME=/
25 '';
26
27 meta = with stdenv.lib; {
28 description = "Command-line bibliography manager";
29 homepage = https://github.com/pubs/pubs;
30 license = licenses.lgpl3;
31 maintainers = with maintainers; [ gebner ];
32 platforms = platforms.all;
33 };
34}