depot/third_party/nixpkgs/pkgs/by-name/pd/pdfannots/package.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02: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";
};
}