2018-10-28 15:40:17 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
2018-12-25 23:06:37 +00:00
|
|
|
, isPy27
|
2018-10-28 15:40:17 +00:00
|
|
|
, fetchPypi
|
|
|
|
, six
|
|
|
|
, pillow
|
|
|
|
, pymaging_png
|
|
|
|
, mock
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "qrcode";
|
2018-11-04 10:35:14 +00:00
|
|
|
version = "6.0";
|
2018-10-28 15:40:17 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-04 10:35:14 +00:00
|
|
|
sha256 = "037b0db4c93f44586e37f84c3da3f763874fcac85b2974a69a98e399ac78e1bf";
|
2018-10-28 15:40:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ six pillow pymaging_png ];
|
|
|
|
checkInputs = [ mock ];
|
2018-12-25 23:06:37 +00:00
|
|
|
doCheck = isPy27; # https://github.com/lincolnloop/python-qrcode/issues/163
|
2018-10-28 15:40:17 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Quick Response code generation for Python";
|
|
|
|
homepage = "https://pypi.python.org/pypi/qrcode";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|