1{ lib
2, buildPythonPackage, fetchFromGitHub
3, future, pyparsing
4, glibcLocales, nose
5}:
6
7buildPythonPackage rec {
8 pname = "bibtexparser";
9 version = "1.0.1";
10
11 # PyPI tarball does not ship tests
12 src = fetchFromGitHub {
13 owner = "sciunto-org";
14 repo = "python-${pname}";
15 rev = "v${version}";
16 sha256 = "0lmlarkfbq2hp1wa04a62245jr2mqizqsdlgilj5aq6vy92gr6ai";
17 };
18
19 propagatedBuildInputs = [ future pyparsing ];
20
21 checkInputs = [ nose glibcLocales ];
22
23 checkPhase = ''
24 LC_ALL="en_US.UTF-8" nosetests
25 '';
26
27 meta = {
28 description = "Bibtex parser for python 2.7 and 3.3 and newer";
29 homepage = https://github.com/sciunto-org/python-bibtexparser;
30 license = with lib.licenses; [ gpl3 bsd3 ];
31 maintainers = with lib.maintainers; [ fridh ];
32 };
33}