depot/pkgs/by-name/pd/pdfannots/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

34 lines
716 B
Nix

{ lib, python3, fetchFromGitHub }:
python3.pkgs.buildPythonApplication rec {
pname = "pdfannots";
version = "0.4";
pyproject = true;
src = fetchFromGitHub {
owner = "0xabu";
repo = "pdfannots";
rev = "v${version}";
hash = "sha256-C0Ss6kZvPx0hHnpBKquEolxeuTfjshhSBSIDXcCKtM8=";
};
nativeBuildInputs = [
python3.pkgs.setuptools
];
propagatedBuildInputs = [
python3.pkgs.pdfminer-six
];
pythonImportsCheck = [
"pdfannots"
];
meta = with lib; {
description = "Extracts and formats text annotations from a PDF file";
homepage = "https://github.com/0xabu/pdfannots";
license = licenses.mit;
maintainers = [ ];
mainProgram = "pdfannots";
};
}