depot/pkgs/by-name/pd/pdftitle/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

37 lines
766 B
Nix

{
lib,
fetchFromGitHub,
python3Packages,
pdfminer
}:
python3Packages.buildPythonApplication rec {
pname = "pdftitle";
version = "0.15";
pyproject = true;
src = fetchFromGitHub {
owner = "metebalci";
repo = "pdftitle";
rev = "v${version}";
hash = "sha256-IEctzvNHlGYUMl3jfTVNinmfMviVQ9q15OZtRN1mhZc=";
};
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";
};
}