2017-05-05 07:50:49 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2018-02-19 16:58:23 +00:00
|
|
|
, fetchFromGitHub
|
2018-02-19 16:49:45 +00:00
|
|
|
, pyparsing
|
|
|
|
, future
|
2018-02-19 16:58:23 +00:00
|
|
|
, nose
|
|
|
|
, glibcLocales
|
2017-05-05 07:50:49 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bibtexparser";
|
2018-02-17 13:18:27 +00:00
|
|
|
version = "1.0.1";
|
2017-05-05 07:50:49 +00:00
|
|
|
|
2018-02-19 16:58:23 +00:00
|
|
|
# PyPI tarball does not ship tests
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sciunto-org";
|
|
|
|
repo = "python-${pname}";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0lmlarkfbq2hp1wa04a62245jr2mqizqsdlgilj5aq6vy92gr6ai";
|
2017-05-05 07:50:49 +00:00
|
|
|
};
|
|
|
|
|
2018-02-19 16:49:45 +00:00
|
|
|
propagatedBuildInputs = [ pyparsing future ];
|
|
|
|
|
2018-02-19 16:58:23 +00:00
|
|
|
checkInputs = [ nose glibcLocales ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
LC_ALL="en_US.UTF-8" nosetests
|
|
|
|
'';
|
2017-05-05 07:50:49 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Bibtex parser for python 2.7 and 3.3 and newer";
|
|
|
|
homepage = https://github.com/sciunto-org/python-bibtexparser;
|
|
|
|
license = with lib.licenses; [ gpl3 bsd3 ];
|
2017-12-05 22:20:11 +00:00
|
|
|
maintainers = with lib.maintainers; [ fridh ];
|
2017-05-05 07:50:49 +00:00
|
|
|
};
|
|
|
|
}
|