python3Packages.arxiv2bib: modernize
This commit is contained in:
@@ -7,17 +7,19 @@
|
||||
unittestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "arxiv2bib";
|
||||
version = "1.0.8";
|
||||
pyproject = true;
|
||||
|
||||
__structuredAttrs = true;
|
||||
|
||||
# Missing tests on Pypi
|
||||
src = fetchFromGitHub {
|
||||
owner = "nathangrigg";
|
||||
repo = "arxiv2bib";
|
||||
rev = version;
|
||||
sha256 = "1kp2iyx20lpc9dv4qg5fgwf83a1wx6f7hj1ldqyncg0kn9xcrhbg";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-b8HMerITPGY9bjRIeJzpPKiBHH+uPEx2S+xSILqP4s4=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
@@ -31,6 +33,8 @@ buildPythonPackage rec {
|
||||
"tests"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "arxiv2bib" ];
|
||||
|
||||
meta = {
|
||||
description = "Get a BibTeX entry from an arXiv id number, using the arxiv.org API";
|
||||
mainProgram = "arxiv2bib";
|
||||
@@ -38,4 +42,4 @@ buildPythonPackage rec {
|
||||
license = lib.licenses.bsd3;
|
||||
maintainers = [ lib.maintainers.nico202 ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user