2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-28 15:40:17 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2023-02-27 01:14:46 +00:00
|
|
|
, setuptools
|
2018-10-28 15:40:17 +00:00
|
|
|
, pillow
|
2023-02-27 01:14:46 +00:00
|
|
|
, pypng
|
|
|
|
, typing-extensions
|
2018-10-28 15:40:17 +00:00
|
|
|
, mock
|
2023-02-27 01:14:46 +00:00
|
|
|
, pytestCheckHook
|
2018-10-28 15:40:17 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "qrcode";
|
2023-02-27 01:14:46 +00:00
|
|
|
version = "7.4.2";
|
|
|
|
format = "pyproject";
|
2018-10-28 15:40:17 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-02-27 01:14:46 +00:00
|
|
|
hash = "sha256-ndlpRUgn4Sfb2TaWsgdHI55tVA4IKTfJDxSslbMPWEU=";
|
2018-10-28 15:40:17 +00:00
|
|
|
};
|
|
|
|
|
2023-02-27 01:14:46 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
typing-extensions
|
|
|
|
pypng
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru.optional-dependencies.pil = [
|
|
|
|
pillow
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
] ++ passthru.optional-dependencies.pil;
|
2018-10-28 15:40:17 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2023-02-27 01:14:46 +00:00
|
|
|
description = "Python QR Code image generator";
|
|
|
|
homepage = "https://github.com/lincolnloop/python-qrcode";
|
|
|
|
changelog = "https://github.com/lincolnloop/python-qrcode/blob/v${version}/CHANGES.rst";
|
2018-10-28 15:40:17 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|