nixpkgs/pkgs/development/python-modules/python-barcode/default.nix
Martin Weinelt d861f233bc python3Packages.python-barcode: 0.15.1 -> 0.16.1
https://github.com/WhyNotHugo/python-barcode/blob/v0.16.1/docs/changelog.rst

This commit was automatically generated using update-python-libraries.
2026-02-01 17:20:07 +01:00

49 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
setuptools-scm,
pillow,
pytestCheckHook,
pytest-cov-stub,
}:
buildPythonPackage (finalAttrs: {
pname = "python-barcode";
version = "0.16.1";
pyproject = true;
src = fetchFromGitHub {
owner = "WhyNotHugo";
repo = "python-barcode";
tag = "v${finalAttrs.version}";
hash = "sha256-a/w2JxFBm/jqIRnqIB7ZtkdiLnBNjbR0V5SNuau/YxY=";
};
build-system = [
setuptools
setuptools-scm
];
optional-dependencies = {
images = [ pillow ];
};
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
]
++ finalAttrs.passthru.optional-dependencies.images;
pythonImportsCheck = [ "barcode" ];
meta = {
description = "Create standard barcodes with Python";
mainProgram = "python-barcode";
homepage = "https://github.com/WhyNotHugo/python-barcode";
changelog = "https://github.com/WhyNotHugo/python-barcode/blob/${finalAttrs.src.tag}/docs/changelog.rst";
license = lib.licenses.mit;
maintainers = [ ];
};
})