Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #310062 from cyberus-technology/paperless-asn-qr-codes

paperless-asn-qr-codes: init at 0.2.0

authored by Leona Maroni and committed by GitHub 9a604d82 73a4508d

+93
+42
pkgs/by-name/pa/paperless-asn-qr-codes/package.nix
··· 1 + { lib 2 + , python3 3 + , fetchFromGitHub 4 + }: 5 + 6 + python3.pkgs.buildPythonApplication rec { 7 + pname = "paperless-asn-qr-codes"; 8 + version = "0.2.0"; 9 + pyproject = true; 10 + 11 + src = fetchFromGitHub { 12 + owner = "entropia"; 13 + repo = "paperless-asn-qr-codes"; 14 + rev = "v${version}"; 15 + hash = "sha256-/xCU6xDrmhkua4Iw/BCzhOuqO5GT/0rTJ+Y59wuMz6E="; 16 + }; 17 + 18 + prePatch = '' 19 + substituteInPlace pyproject.toml \ 20 + --replace-fail "\"argparse\"," "" 21 + ''; 22 + 23 + nativeBuildInputs = [ 24 + python3.pkgs.hatch-vcs 25 + python3.pkgs.hatchling 26 + ]; 27 + 28 + propagatedBuildInputs = with python3.pkgs; [ 29 + reportlab 30 + reportlab-qrcode 31 + ]; 32 + 33 + pythonImportsCheck = [ "paperless_asn_qr_codes" ]; 34 + 35 + meta = with lib; { 36 + 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"; 37 + homepage = "https://github.com/entropia/paperless-asn-qr-codes"; 38 + license = licenses.gpl3Only; 39 + maintainers = with maintainers; [ xanderio ]; 40 + mainProgram = "paperless-asn-qr-codes"; 41 + }; 42 + }
+49
pkgs/development/python-modules/reportlab-qrcode/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , setuptools 5 + , wheel 6 + , qrcode 7 + , reportlab 8 + , pillow 9 + , pytest 10 + , pyzbar 11 + }: 12 + 13 + buildPythonPackage rec { 14 + pname = "reportlab-qrcode"; 15 + version = "0.1.6"; 16 + pyproject = true; 17 + 18 + src = fetchPypi { 19 + inherit pname version; 20 + hash = "sha256-m/oeuA797MEBOJBIG157VIa7TbEbRRVK/O8Arz/oO/o="; 21 + }; 22 + 23 + nativeBuildInputs = [ 24 + setuptools 25 + wheel 26 + ]; 27 + 28 + propagatedBuildInputs = [ 29 + qrcode 30 + reportlab 31 + ]; 32 + 33 + passthru.optional-dependencies = { 34 + testing = [ 35 + pillow 36 + pytest 37 + pyzbar 38 + ]; 39 + }; 40 + 41 + pythonImportsCheck = [ "reportlab_qrcode" ]; 42 + 43 + meta = with lib; { 44 + description = "Allows to create QR codes for use with the ReportLab PDF library"; 45 + homepage = "https://pypi.org/project/reportlab-qrcode/"; 46 + license = licenses.mit; 47 + maintainers = with maintainers; [ xanderio ]; 48 + }; 49 + }
+2
pkgs/top-level/python-packages.nix
··· 13145 13145 13146 13146 reportlab = callPackage ../development/python-modules/reportlab { }; 13147 13147 13148 + reportlab-qrcode = callPackage ../development/python-modules/reportlab-qrcode { }; 13149 + 13148 13150 repoze-lru = callPackage ../development/python-modules/repoze-lru { }; 13149 13151 13150 13152 repoze-sphinx-autointerface = callPackage ../development/python-modules/repoze-sphinx-autointerface { };