python3Packages.pystrich: init at 0.20 (#548754)

This commit is contained in:
Ihar Hrachyshka
2026-09-07 22:16:28 +00:00
committed by GitHub
3 changed files with 75 additions and 0 deletions

View File

@@ -19342,6 +19342,12 @@
githubId = 708570;
name = "Manuel Mendez";
};
mmulqueen = {
email = "michael@mulqueen.me.uk";
github = "mmulqueen";
githubId = 6616321;
name = "Michael Mulqueen";
};
mmusnjak = {
email = "marko.musnjak@gmail.com";
github = "mmusnjak";

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

@@ -16288,6 +16288,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 { };