pythonPackages.qrcode: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-28 11:40:17 -04:00
parent 6986e9ecac
commit 4ed0fd0b12
No known key found for this signature in database
GPG Key ID: 9ED59B0AB1EAF573
2 changed files with 29 additions and 18 deletions

View File

@ -0,0 +1,28 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, six
, pillow
, pymaging_png
, mock
}:
buildPythonPackage rec {
pname = "qrcode";
version = "5.3";
src = fetchPypi {
inherit pname version;
sha256 = "0kljfrfq0c2rmxf8am57333ia41kd0snbm2rnqbdy816hgpcq5a1";
};
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;
};
}

View File

@ -3981,24 +3981,7 @@ in {
tlslite = callPackage ../development/python-modules/tlslite { }; tlslite = callPackage ../development/python-modules/tlslite { };
qrcode = buildPythonPackage rec { qrcode = callPackage ../development/python-modules/qrcode { };
name = "qrcode-${version}";
version = "5.3";
src = pkgs.fetchurl {
url = "mirror://pypi/q/qrcode/${name}.tar.gz";
sha256 = "0kljfrfq0c2rmxf8am57333ia41kd0snbm2rnqbdy816hgpcq5a1";
};
propagatedBuildInputs = with self; [ six pillow pymaging_png ];
checkInputs = [ self.mock ];
meta = {
description = "Quick Response code generation for Python";
homepage = "https://pypi.python.org/pypi/qrcode";
license = licenses.bsd3;
};
};
tmdb3 = callPackage ../development/python-modules/tmdb3 { }; tmdb3 = callPackage ../development/python-modules/tmdb3 { };