python312Packages.qrcode: 7.4.2 -> 8.0

https://github.com/lincolnloop/python-qrcode/blob/v8.0/CHANGES.rst
This commit is contained in:
Martin Weinelt 2024-10-21 02:28:56 +02:00
parent 51eecb3747
commit 10c92665ec
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -2,42 +2,47 @@
lib,
buildPythonPackage,
fetchPypi,
mock,
pythonAtLeast,
# build-system
poetry-core,
# dependencies
pillow,
pypng,
# tests
mock,
pytestCheckHook,
pythonAtLeast,
qrcode,
setuptools,
testers,
typing-extensions,
}:
buildPythonPackage rec {
pname = "qrcode";
version = "7.4.2";
version = "8.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-ndlpRUgn4Sfb2TaWsgdHI55tVA4IKTfJDxSslbMPWEU=";
hash = "sha256-AlzisVD3/kKW0Rbum61FWmZDq09ufc5UFhOkdYy840c=";
};
nativeBuildInputs = [ setuptools ];
build-system = [ poetry-core ];
propagatedBuildInputs = [
typing-extensions
optional-dependencies = {
pil = [ pillow ];
png = [ pypng ];
all = [
pypng
# imports pkg_resouces in console_scripts.py
setuptools
pillow
];
optional-dependencies.pil = [ pillow ];
};
nativeCheckInputs = [
mock
pytestCheckHook
] ++ optional-dependencies.pil;
] ++ lib.flatten (lib.attrValues optional-dependencies);
passthru.tests = {
version = testers.testVersion {