2017-05-05 09:50:49 +02:00
|
|
|
{ lib
|
2018-03-29 17:43:36 +02:00
|
|
|
, buildPythonPackage, fetchFromGitHub
|
2018-03-12 21:19:36 +01:00
|
|
|
, future, pyparsing
|
2019-01-17 19:40:58 +01:00
|
|
|
, glibcLocales, nose, unittest2
|
2017-05-05 09:50:49 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bibtexparser";
|
2019-01-17 19:40:58 +01:00
|
|
|
version = "1.1.0";
|
2017-05-05 09:50:49 +02:00
|
|
|
|
2018-02-19 17:58:23 +01:00
|
|
|
# PyPI tarball does not ship tests
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sciunto-org";
|
|
|
|
repo = "python-${pname}";
|
|
|
|
rev = "v${version}";
|
2019-01-17 19:40:58 +01:00
|
|
|
sha256 = "1yj3hqnmkjh0sjjhmlm4097mmz98kna8rn0dd9g8zaw9g1a35h8c";
|
2017-05-05 09:50:49 +02:00
|
|
|
};
|
|
|
|
|
2018-03-12 21:19:36 +01:00
|
|
|
propagatedBuildInputs = [ future pyparsing ];
|
|
|
|
|
2019-01-17 19:40:58 +01:00
|
|
|
checkInputs = [ nose unittest2 glibcLocales ];
|
2018-02-19 17:58:23 +01:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
LC_ALL="en_US.UTF-8" nosetests
|
|
|
|
'';
|
2017-05-05 09:50:49 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Bibtex parser for python 2.7 and 3.3 and newer";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/sciunto-org/python-bibtexparser";
|
2017-05-05 09:50:49 +02:00
|
|
|
license = with lib.licenses; [ gpl3 bsd3 ];
|
2017-12-05 23:20:11 +01:00
|
|
|
maintainers = with lib.maintainers; [ fridh ];
|
2017-05-05 09:50:49 +02:00
|
|
|
};
|
|
|
|
}
|