paperless-asn-qr-codes: init at 0.2.0

This commit is contained in:
Alexander Sieg 2024-05-08 11:38:38 +02:00
parent 3507f13417
commit c8ccbc21cb
No known key found for this signature in database
1 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,42 @@
{ lib
, python3
, fetchFromGitHub
}:
python3.pkgs.buildPythonApplication rec {
pname = "paperless-asn-qr-codes";
version = "0.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "entropia";
repo = "paperless-asn-qr-codes";
rev = "v${version}";
hash = "sha256-/xCU6xDrmhkua4Iw/BCzhOuqO5GT/0rTJ+Y59wuMz6E=";
};
prePatch = ''
substituteInPlace pyproject.toml \
--replace-fail "\"argparse\"," ""
'';
nativeBuildInputs = [
python3.pkgs.hatch-vcs
python3.pkgs.hatchling
];
propagatedBuildInputs = with python3.pkgs; [
reportlab
reportlab-qrcode
];
pythonImportsCheck = [ "paperless_asn_qr_codes" ];
meta = with lib; {
description = "Command line utility for generating ASN labels for paperless with both a human-readable representation, as well as a QR code for machine consumption";
homepage = "https://github.com/entropia/paperless-asn-qr-codes";
license = licenses.gpl3Only;
maintainers = with maintainers; [ xanderio ];
mainProgram = "paperless-asn-qr-codes";
};
}