Commit 08852056 authored by Robert Schütz's avatar Robert Schütz
Browse files
parent 01af6888
Loading
Loading
Loading
Loading
+10 −10
Original line number Diff line number Diff line
@@ -6,27 +6,26 @@

python3.pkgs.buildPythonApplication (finalAttrs: {
  pname = "paperless-asn-qr-codes";
  version = "0.2.0";
  version = "0.5.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "entropia";
    repo = "paperless-asn-qr-codes";
    rev = "v${finalAttrs.version}";
    hash = "sha256-/xCU6xDrmhkua4Iw/BCzhOuqO5GT/0rTJ+Y59wuMz6E=";
    tag = "v${finalAttrs.version}";
    hash = "sha256-mCymgzKjLMrwb1AjkfFf1EHTkW1G0y+R3ZbG/6Xd978=";
  };

  prePatch = ''
    substituteInPlace pyproject.toml \
      --replace-fail "\"argparse\"," ""
  '';

  nativeBuildInputs = [
  build-system = [
    python3.pkgs.hatch-vcs
    python3.pkgs.hatchling
  ];

  propagatedBuildInputs = with python3.pkgs; [
  pythonRelaxDeps = [
    "reportlab"
  ];

  dependencies = with python3.pkgs; [
    reportlab
    reportlab-qrcode
  ];
@@ -34,6 +33,7 @@ python3.pkgs.buildPythonApplication (finalAttrs: {
  pythonImportsCheck = [ "paperless_asn_qr_codes" ];

  meta = {
    changelog = "https://codeberg.org/entropia/paperless-asn-qr-codes/releases/tag/${finalAttrs.src.tag}";
    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 = lib.licenses.gpl3Only;