10 buildPythonPackage rec {
13 format = "setuptools";
15 src = fetchFromGitHub {
16 owner = "NaturalHistoryMuseum";
19 hash = "sha256-vNWzhO4V0mj4eItZ0Z5UG9RBCqprIcgMGNyIe1+mXWY=";
24 # """Loads the libdmtx shared library.
28 # return cdll.LoadLibrary("/nix/store/.../lib/libdmtx.so")
29 # """Loads the libdmtx shared library.
31 sed -i '\#def load.*#a\ return cdll.LoadLibrary("${libdmtx}/lib/libdmtx.so")' \
32 pylibdmtx/dmtx_library.py
34 # Checks that the loader works in various scenarios, but we just
35 # forced it to only work one way.
36 rm pylibdmtx/tests/test_dmtx_library.py
39 propagatedBuildInputs = [
44 pythonImportsCheck = [ "pylibdmtx" ];
47 description = "Read and write Data Matrix barcodes from Python 2 and 3 using the libdmtx library";
48 homepage = "https://github.com/NaturalHistoryMuseum/pylibdmtx/";
49 license = licenses.mit;
50 maintainers = with maintainers; [ grahamc ];