Unverified Commit ea27896f authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

Merge pull request #232285 from mweinelt/qr-pkg_resources

python310Packages.qrcode: propagate setuptools
parents 222bf96f eefbea95
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -7,6 +7,8 @@
, typing-extensions
, mock
, pytestCheckHook
, testers
, qrcode
}:

buildPythonPackage rec {
@@ -26,6 +28,8 @@ buildPythonPackage rec {
  propagatedBuildInputs = [
    typing-extensions
    pypng
    # imports pkg_resouces in console_scripts.py
    setuptools
  ];

  passthru.optional-dependencies.pil = [
@@ -37,6 +41,13 @@ buildPythonPackage rec {
    pytestCheckHook
  ] ++ passthru.optional-dependencies.pil;

  passthru.tests = {
    version = testers.testVersion {
      package = qrcode;
      command = "qr --version";
    };
  };

  meta = with lib; {
    description = "Python QR Code image generator";
    homepage = "https://github.com/lincolnloop/python-qrcode";