Merge pull request #265575 from natsukium/zxing-cpp

python311Packages.zxing-cpp: rename from zxing_cpp
This commit is contained in:
OTABI Tomoya
2023-11-06 09:37:48 +09:00
committed by GitHub
7 changed files with 61 additions and 35 deletions
@@ -4,7 +4,7 @@
, yubikey-manager
, fido2
, mss
, zxing_cpp
, zxing-cpp
, pillow
, cryptography
@@ -43,7 +43,7 @@ buildPythonApplication {
yubikey-manager
fido2
mss
zxing_cpp
zxing-cpp
pillow
cryptography
];
@@ -215,7 +215,7 @@ python.pkgs.buildPythonApplication rec {
whoosh
zipp
zope_interface
zxing_cpp
zxing-cpp
]
++ redis.optional-dependencies.hiredis
++ twisted.optional-dependencies.tls
@@ -30,7 +30,7 @@ stdenv.mkDerivation (finalAttrs: {
passthru = {
tests = {
inherit (python3.pkgs) zxing_cpp;
inherit (python3.pkgs) zxing-cpp;
};
updateScript = gitUpdater {
rev-prefix = "v";
@@ -0,0 +1,53 @@
{ lib
, buildPythonPackage
, cmake
, setuptools-scm
, numpy
, pillow
, pybind11
, libzxing-cpp
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "zxing-cpp";
inherit (libzxing-cpp) src version meta;
pyproject = true;
sourceRoot = "${src.name}/wrappers/python";
# we don't need pybind11 in the root environment
# https://pybind11.readthedocs.io/en/stable/installing.html#include-with-pypi
postPatch = ''
substituteInPlace pyproject.toml \
--replace "pybind11[global]" "pybind11"
'';
dontUseCmakeConfigure = true;
propagatedBuildInputs = [
numpy
];
buildInputs = [
pybind11
];
nativeBuildInputs = [
cmake
setuptools-scm
];
nativeCheckInputs = [
pillow
pytestCheckHook
];
pytestFlagsArray = [
"test.py"
];
pythonImportsCheck = [
"zxingcpp"
];
}
@@ -1,30 +0,0 @@
{ lib
, buildPythonPackage
, cmake
, numpy
, pillow
, pybind11
, zxing-cpp
}:
buildPythonPackage rec {
pname = "zxing_cpp";
inherit (zxing-cpp) src version meta;
sourceRoot = "${src.name}/wrappers/python";
dontUseCmakeConfigure = true;
propagatedBuildInputs = [
pybind11
numpy
];
nativeBuildInputs = [
cmake
];
nativeCheckInputs = [
pillow
];
}
+1
View File
@@ -450,4 +450,5 @@ mapAliases ({
zope_i18nmessageid = zope-i18nmessageid; # added 2023-07-29
zope_lifecycleevent = zope-lifecycleevent; # added 2023-10-11
zope_proxy = zope-proxy; # added 2023-10-07
zxing_cpp = zxing-cpp; # added 2023-11-05
})
+3 -1
View File
@@ -16113,5 +16113,7 @@ self: super: with self; {
zxcvbn = callPackage ../development/python-modules/zxcvbn { };
zxing_cpp = callPackage ../development/python-modules/zxing_cpp { };
zxing-cpp = callPackage ../development/python-modules/zxing-cpp {
libzxing-cpp = pkgs.zxing-cpp;
};
}