2018-02-09 16:40:17 +01:00
|
|
|
{ buildPythonPackage, python, lib, fetchFromGitHub
|
|
|
|
, mock
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "arxiv2bib";
|
|
|
|
version = "1.0.8";
|
|
|
|
|
|
|
|
# Missing tests on Pypi
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nathangrigg";
|
|
|
|
repo = "arxiv2bib";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1kp2iyx20lpc9dv4qg5fgwf83a1wx6f7hj1ldqyncg0kn9xcrhbg";
|
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ mock ];
|
|
|
|
|
|
|
|
checkPhase = "${python.interpreter} -m unittest discover -s tests";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Get a BibTeX entry from an arXiv id number, using the arxiv.org API";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://nathangrigg.github.io/arxiv2bib/";
|
2018-02-09 16:40:17 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.nico202 ];
|
|
|
|
};
|
|
|
|
}
|