Files
nixpkgs/pkgs/development/python-modules/arxiv2bib/default.nix
T
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

32 lines
738 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";
mainProgram = "arxiv2bib";
homepage = "http://nathangrigg.github.io/arxiv2bib/";
license = licenses.bsd3;
maintainers = [ maintainers.nico202 ];
};
}