mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-05 19:53:43 +00:00
35 lines
842 B
Nix
35 lines
842 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
python3Packages,
|
|
pdfminer,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "pdftitle";
|
|
version = "0.16";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "metebalci";
|
|
repo = "pdftitle";
|
|
rev = "v${version}";
|
|
hash = "sha256-s5OrZQogFJEKbaGoPHti7UcpqXhxrtIAC2Hd+clDbD4=";
|
|
};
|
|
|
|
build-system = with python3Packages; [ setuptools ];
|
|
|
|
dependencies = with python3Packages; [ pdfminer ];
|
|
|
|
pythonImportsCheck = [ "pdftitle" ];
|
|
|
|
meta = {
|
|
description = "Utility to extract the title from a PDF file";
|
|
homepage = "https://github.com/metebalci/pdftitle";
|
|
changelog = "https://github.com/metebalci/pdftitle/blob/v${version}/CHANGELOG.md";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [ dansbandit ];
|
|
mainProgram = "pdftitle";
|
|
};
|
|
}
|