14 buildPythonPackage rec {
19 disabled = pythonOlder "3.6";
21 src = fetchFromGitHub {
22 owner = "quintusdias";
24 rev = "refs/tags/v${version}";
25 hash = "sha256-9NMSAt5yFRnlCUDP37/ozhDsS8FTdRkfjUz8kQwWzVc=";
32 propagatedBuildInputs = [
43 substituteInPlace glymur/config.py \
44 --replace "path = read_config_file(libname)" "path = '${openjpeg}/lib/lib' + libname + ${if stdenv.isDarwin then "'.dylib'" else "'.so'"}"
48 # this test involves glymur's different ways of finding the openjpeg path on
49 # fsh systems by reading an .rc file and such, and is obviated by the patch
51 "tests/test_config.py"
52 "tests/test_tiff2jp2.py"
55 pythonImportsCheck = [
60 description = "Tools for accessing JPEG2000 files";
61 homepage = "https://github.com/quintusdias/glymur";
62 changelog = "https://github.com/quintusdias/glymur/blob/v${version}/CHANGES.txt";
63 license = licenses.mit;
64 maintainers = with maintainers; [ ];