1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs synced 2024-10-18 15:14:49 -04:00
nixpkgs/pkgs/by-name/pd/pdftitle/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
766 B
Nix
Raw Normal View History

2024-06-10 17:05:15 -04:00
{
lib,
fetchFromGitHub,
python3Packages,
pdfminer
}:
python3Packages.buildPythonApplication rec {
pname = "pdftitle";
2024-10-12 14:21:33 -04:00
version = "0.14";
2024-06-10 17:05:15 -04:00
pyproject = true;
src = fetchFromGitHub {
owner = "metebalci";
repo = "pdftitle";
rev = "v${version}";
2024-10-12 14:21:33 -04:00
hash = "sha256-7tIvvRlaKRC3/eRUS8F3d3qiJnCU0Z14Pj9E4v0X4+o=";
2024-06-10 17:05:15 -04:00
};
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";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ dansbandit ];
mainProgram = "pdftitle";
};
}