nixpkgs/pkgs/development/python-modules/qrcode/default.nix
2018-12-03 16:50:34 +01:00

29 lines
546 B
Nix

{ stdenv
, buildPythonPackage
, fetchPypi
, six
, pillow
, pymaging_png
, mock
}:
buildPythonPackage rec {
pname = "qrcode";
version = "6.0";
src = fetchPypi {
inherit pname version;
sha256 = "037b0db4c93f44586e37f84c3da3f763874fcac85b2974a69a98e399ac78e1bf";
};
propagatedBuildInputs = [ six pillow pymaging_png ];
checkInputs = [ mock ];
meta = with stdenv.lib; {
description = "Quick Response code generation for Python";
homepage = "https://pypi.python.org/pypi/qrcode";
license = licenses.bsd3;
};
}