diff options
author | Leona Maroni <dev@leona.is> | 2024-05-08 15:08:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-08 15:08:41 +0200 |
commit | 9a604d82fbc5d8a85a830efc28564cf397a297ab (patch) | |
tree | cdded6d7eec53b802fdb29d5f03882af027932b1 /pkgs/by-name/pa | |
parent | 73a4508d56c1df4a4efc0436b88f352ee2e69a15 (diff) | |
parent | c8ccbc21cbb013b5c138b3293df276b856807c02 (diff) |
Merge pull request #310062 from cyberus-technology/paperless-asn-qr-codes
paperless-asn-qr-codes: init at 0.2.0
Diffstat (limited to 'pkgs/by-name/pa')
-rw-r--r-- | pkgs/by-name/pa/paperless-asn-qr-codes/package.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/by-name/pa/paperless-asn-qr-codes/package.nix b/pkgs/by-name/pa/paperless-asn-qr-codes/package.nix new file mode 100644 index 0000000000000..1661d7a5a4859 --- /dev/null +++ b/pkgs/by-name/pa/paperless-asn-qr-codes/package.nix @@ -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"; + }; +} |