depot/third_party/nixpkgs/pkgs/development/python-modules/qrcode/default.nix
Default email 83405b6dd2 Project import generated by Copybara.
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
2023-03-15 17:39:30 +01:00

47 lines
860 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, pillow
, pypng
, typing-extensions
, mock
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "qrcode";
version = "7.4.2";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-ndlpRUgn4Sfb2TaWsgdHI55tVA4IKTfJDxSslbMPWEU=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
typing-extensions
pypng
];
passthru.optional-dependencies.pil = [
pillow
];
nativeCheckInputs = [
mock
pytestCheckHook
] ++ passthru.optional-dependencies.pil;
meta = with lib; {
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";
license = licenses.bsd3;
};
}