Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 1.1 kB view raw
1{ buildPythonPackage 2, lib 3, cmake 4, pybind11 5, zxing-cpp 6, numpy 7, pillow 8}: 9 10buildPythonPackage rec { 11 pname = "zxing_cpp"; 12 inherit (zxing-cpp) src version; 13 14 sourceRoot = "source/wrappers/python"; 15 patches = [ 16 ./use-nixpkgs-pybind11.patch 17 ]; 18 dontUseCmakeConfigure = true; 19 20 propagatedBuildInputs = [ 21 pybind11 22 numpy 23 ]; 24 25 nativeBuildInputs = [ 26 cmake 27 ]; 28 29 nativeCheckInputs = [ 30 pillow 31 ]; 32 33 meta = with lib; { 34 homepage = "https://github.com/zxing-cpp/zxing-cpp"; 35 description = "Python bindings for C++ port of zxing (a Java barcode image processing library)"; 36 longDescription = '' 37 ZXing-C++ ("zebra crossing") is an open-source, multi-format 1D/2D barcode 38 image processing library implemented in C++. 39 40 It was originally ported from the Java ZXing Library but has been 41 developed further and now includes many improvements in terms of quality 42 and performance. It can both read and write barcodes in a number of 43 formats. 44 ''; 45 license = licenses.asl20; 46 maintainers = with maintainers; [ lukegb ]; 47 platforms = with platforms; unix; 48 }; 49}