2017-05-05 08:50:49 +01:00
|
|
|
{ lib
|
2018-03-29 16:43:36 +01:00
|
|
|
, buildPythonPackage, fetchFromGitHub
|
2018-03-12 20:19:36 +00:00
|
|
|
, future, pyparsing
|
2018-03-29 16:43:36 +01:00
|
|
|
, glibcLocales, nose
|
2017-05-05 08:50:49 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bibtexparser";
|
2018-02-17 13:18:27 +00:00
|
|
|
version = "1.0.1";
|
2017-05-05 08:50:49 +01: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 08:50:49 +01:00
|
|
|
};
|
|
|
|
|
2018-03-12 20:19:36 +00:00
|
|
|
propagatedBuildInputs = [ future pyparsing ];
|
|
|
|
|
2018-02-19 16:58:23 +00:00
|
|
|
checkInputs = [ nose glibcLocales ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
LC_ALL="en_US.UTF-8" nosetests
|
|
|
|
'';
|
2017-05-05 08:50:49 +01: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 08:50:49 +01:00
|
|
|
};
|
|
|
|
}
|