python3Packages.pystrich: init at 0.20

This commit is contained in:
Michael Mulqueen
2026-09-07 15:32:45 +00:00
parent 59db99299b
commit cd3ced13bd
2 changed files with 69 additions and 0 deletions

View File

@@ -0,0 +1,65 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
pillow,
typing-extensions,
pytestCheckHook,
ezdxf,
fonttools,
hypothesis,
zxing-cpp,
dmtx-utils,
librsvg,
ghostscript,
nix-update-script,
}:
buildPythonPackage rec {
pname = "pystrich";
version = "0.20";
pyproject = true;
src = fetchFromGitHub {
owner = "mmulqueen";
repo = "pyStrich";
tag = version;
hash = "sha256-08IKFJfcK0I+phUejUY7FHh2a7efR+UKrj+tsKEwSJ4=";
};
build-system = [ hatchling ];
dependencies = [
pillow
typing-extensions
];
optional-dependencies = {
png = [ pillow ];
};
nativeCheckInputs = [
pytestCheckHook
ezdxf
fonttools
hypothesis
zxing-cpp
dmtx-utils
librsvg
ghostscript
];
pythonImportsCheck = [ "pystrich" ];
passthru.updateScript = nix-update-script { };
meta = {
description = "Pure-Python module to generate 1D and 2D barcodes";
homepage = "https://github.com/mmulqueen/pyStrich";
changelog = "https://github.com/mmulqueen/pyStrich/releases/tag/${version}";
license = lib.licenses.asl20;
mainProgram = "pystrich";
maintainers = with lib.maintainers; [ mmulqueen ];
};
}

View File

@@ -16284,6 +16284,10 @@ self: super: with self; {
pystray = callPackage ../development/python-modules/pystray { };
pystrich = callPackage ../development/python-modules/pystrich {
inherit (pkgs) ghostscript;
};
pysubs2 = callPackage ../development/python-modules/pysubs2 { };
pysuezv2 = callPackage ../development/python-modules/pysuezv2 { };