02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
30 lines
707 B
Nix
30 lines
707 B
Nix
{ buildPythonPackage
|
|
, lib
|
|
, fetchFromGitHub
|
|
, mock
|
|
, unittestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "arxiv2bib";
|
|
version = "1.0.8";
|
|
format = "setuptools";
|
|
|
|
# Missing tests on Pypi
|
|
src = fetchFromGitHub {
|
|
owner = "nathangrigg";
|
|
repo = "arxiv2bib";
|
|
rev = version;
|
|
sha256 = "1kp2iyx20lpc9dv4qg5fgwf83a1wx6f7hj1ldqyncg0kn9xcrhbg";
|
|
};
|
|
|
|
nativeCheckInputs = [ unittestCheckHook mock ];
|
|
unittestFlagsArray = [ "-s" "tests" ];
|
|
|
|
meta = with lib; {
|
|
description = "Get a BibTeX entry from an arXiv id number, using the arxiv.org API";
|
|
homepage = "http://nathangrigg.github.io/arxiv2bib/";
|
|
license = licenses.bsd3;
|
|
maintainers = [ maintainers.nico202 ];
|
|
};
|
|
}
|