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
|
2019-01-17 18:40:58 +00:00
|
|
|
, glibcLocales, nose, unittest2
|
2017-05-05 08:50:49 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bibtexparser";
|
2019-01-17 18:40:58 +00:00
|
|
|
version = "1.1.0";
|
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}";
|
2019-01-17 18:40:58 +00:00
|
|
|
sha256 = "1yj3hqnmkjh0sjjhmlm4097mmz98kna8rn0dd9g8zaw9g1a35h8c";
|
2017-05-05 08:50:49 +01:00
|
|
|
};
|
|
|
|
|
2018-03-12 20:19:36 +00:00
|
|
|
propagatedBuildInputs = [ future pyparsing ];
|
|
|
|
|
2019-01-17 18:40:58 +00:00
|
|
|
checkInputs = [ nose unittest2 glibcLocales ];
|
2018-02-19 16:58:23 +00:00
|
|
|
|
|
|
|
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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/sciunto-org/python-bibtexparser";
|
2017-05-05 08:50:49 +01:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|