python3Packages.qrcodegen: init at 1.8.0 (#432987)
This commit is contained in:
commit
cf4aac40d2
41
pkgs/development/python-modules/qrcodegen/default.nix
Normal file
41
pkgs/development/python-modules/qrcodegen/default.nix
Normal file
@ -0,0 +1,41 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
qrcodegen,
|
||||
setuptools,
|
||||
python,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "qrcodegen";
|
||||
pyproject = true;
|
||||
|
||||
inherit (qrcodegen)
|
||||
version
|
||||
src
|
||||
;
|
||||
|
||||
sourceRoot = "${src.name}/python";
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
pythonImportsCheck = [ "qrcodegen" ];
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
|
||||
${python.interpreter} qrcodegen-demo.py
|
||||
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
meta = {
|
||||
inherit (qrcodegen.meta)
|
||||
description
|
||||
homepage
|
||||
license
|
||||
maintainers
|
||||
platforms
|
||||
;
|
||||
};
|
||||
}
|
||||
@ -15359,6 +15359,8 @@ self: super: with self; {
|
||||
|
||||
qrcode-terminal = callPackage ../development/python-modules/qrcode-terminal { };
|
||||
|
||||
qrcodegen = callPackage ../development/python-modules/qrcodegen { qrcodegen = pkgs.qrcodegen; };
|
||||
|
||||
qreactor = callPackage ../development/python-modules/qreactor { };
|
||||
|
||||
qscintilla = self.qscintilla-qt5;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user