15 buildPythonPackage rec {
19 src = fetchFromGitHub {
20 owner = "quintusdias";
23 sha256 = "1zbghzw1q4fljb019lsrhka9xrnn4425qnxrjbmbv7dssgkkywd7";
26 propagatedBuildInputs = [
28 ] ++ lib.optional isPy27 [ contextlib2 mock importlib-resources ];
36 substituteInPlace glymur/config.py \
37 --replace "path = read_config_file(libname)" "path = '${openjpeg}/lib' + libname + ${if stdenv.isDarwin then "'.dylib'" else "'.so'"}"
41 ${python.interpreter} -m unittest discover
45 description = "Tools for accessing JPEG2000 files";
46 homepage = "https://github.com/quintusdias/glymur";
47 license = licenses.mit;
48 maintainers = [ maintainers.costrouc ];