python3Packages.glymur: 0.8.18 -> 0.9.3
This commit is contained in:
parent
df52f5afb1
commit
3a349a7ad3
|
@ -2,10 +2,10 @@
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, numpy
|
, numpy
|
||||||
, python
|
|
||||||
, scikitimage
|
, scikitimage
|
||||||
, openjpeg
|
, openjpeg
|
||||||
, procps
|
, procps
|
||||||
|
, pytestCheckHook
|
||||||
, contextlib2
|
, contextlib2
|
||||||
, mock
|
, mock
|
||||||
, importlib-resources
|
, importlib-resources
|
||||||
|
@ -14,13 +14,13 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "glymur";
|
pname = "glymur";
|
||||||
version = "0.8.18";
|
version = "0.9.3";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "quintusdias";
|
owner = "quintusdias";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1zbghzw1q4fljb019lsrhka9xrnn4425qnxrjbmbv7dssgkkywd7";
|
sha256 = "1xlpax56qg5qqh0s19xidgvv2483sc684zj7rh6zw1m1z9m37drr";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
@ -30,16 +30,21 @@ buildPythonPackage rec {
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
scikitimage
|
scikitimage
|
||||||
procps
|
procps
|
||||||
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
postConfigure = ''
|
postConfigure = ''
|
||||||
substituteInPlace glymur/config.py \
|
substituteInPlace glymur/config.py \
|
||||||
--replace "path = read_config_file(libname)" "path = '${openjpeg}/lib' + libname + ${if stdenv.isDarwin then "'.dylib'" else "'.so'"}"
|
--replace "path = read_config_file(libname)" "path = '${openjpeg}/lib/lib' + libname + ${if stdenv.isDarwin then "'.dylib'" else "'.so'"}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkPhase = ''
|
disabledTestPaths = [
|
||||||
${python.interpreter} -m unittest discover
|
# this test involves glymur's different ways of finding the openjpeg path on
|
||||||
'';
|
# fsh systems by reading an .rc file and such, and is obviated by the patch
|
||||||
|
# in postConfigure
|
||||||
|
"tests/test_config.py"
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Tools for accessing JPEG2000 files";
|
description = "Tools for accessing JPEG2000 files";
|
||||||
|
|
Loading…
Reference in a new issue