mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 07:04:28 +00:00
483b87ba09
They fail since qrcode 6.0: https://hydra.nixos.org/job/nixpkgs/trunk/python37Packages.qrcode.x86_64-linux Upstream issue: https://github.com/lincolnloop/python-qrcode/issues/163
31 lines
633 B
Nix
31 lines
633 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, isPy27
|
|
, 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 ];
|
|
doCheck = isPy27; # https://github.com/lincolnloop/python-qrcode/issues/163
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Quick Response code generation for Python";
|
|
homepage = "https://pypi.python.org/pypi/qrcode";
|
|
license = licenses.bsd3;
|
|
};
|
|
|
|
}
|