Loading pkgs/development/python-modules/cairocffi/default.nix +28 −25 Original line number Diff line number Diff line Loading @@ -7,6 +7,7 @@ , substituteAll , makeFontsConf , freefont_ttf , pikepdf , pytest , glibcLocales , cairo Loading @@ -21,15 +22,36 @@ buildPythonPackage rec { pname = "cairocffi"; version = "1.3.0"; version = "1.4.0"; disabled = pythonOlder "3.5"; src = fetchPypi { inherit pname version; sha256 = "sha256-EIo6fLCeIDvdhQHZuq2R14bSBFYb1x6TZOizSJfEe5E="; sha256 = "sha256-UJM5syzNjXsAwiBMMnNs3njbU6MuahYtMSR40lYmzZo="; }; patches = [ # OSError: dlopen() failed to load a library: gdk-pixbuf-2.0 / gdk-pixbuf-2.0-0 (substituteAll { src = ./dlopen-paths.patch; ext = stdenv.hostPlatform.extensions.sharedLibrary; cairo = cairo.out; glib = glib.out; gdk_pixbuf = gdk-pixbuf.out; }) ./fix_test_scaled_font.patch ]; postPatch = '' substituteInPlace setup.cfg \ --replace "pytest-runner" "" \ --replace "pytest-cov" "" \ --replace "pytest-flake8" "" \ --replace "pytest-isort" "" \ --replace "--flake8 --isort" "" ''; LC_ALL = "en_US.UTF-8"; # checkPhase require at least one 'normal' font and one 'monospace', Loading @@ -38,37 +60,18 @@ buildPythonPackage rec { fontDirectories = [ freefont_ttf ]; }; propagatedBuildInputs = [ cairo cffi ] ++ lib.optional withXcffib xcffib; propagatedNativeBuildInputs = [ cffi ]; # pytestCheckHook does not work checkInputs = [ numpy pytest glibcLocales ]; propagatedBuildInputs = [ cairo cffi ] ++ lib.optional withXcffib xcffib; postPatch = '' substituteInPlace setup.cfg \ --replace "pytest-runner" "" \ --replace "pytest-cov" "" \ --replace "pytest-flake8" "" \ --replace "pytest-isort" "" \ --replace "--flake8 --isort" "" ''; # pytestCheckHook does not work checkInputs = [ numpy pikepdf pytest glibcLocales ]; checkPhase = '' py.test $out/${python.sitePackages} ''; patches = [ # OSError: dlopen() failed to load a library: gdk-pixbuf-2.0 / gdk-pixbuf-2.0-0 (substituteAll { src = ./dlopen-paths.patch; ext = stdenv.hostPlatform.extensions.sharedLibrary; cairo = cairo.out; glib = glib.out; gdk_pixbuf = gdk-pixbuf.out; }) ./fix_test_scaled_font.patch ]; meta = with lib; { homepage = "https://github.com/SimonSapin/cairocffi"; license = licenses.bsd3; Loading Loading
pkgs/development/python-modules/cairocffi/default.nix +28 −25 Original line number Diff line number Diff line Loading @@ -7,6 +7,7 @@ , substituteAll , makeFontsConf , freefont_ttf , pikepdf , pytest , glibcLocales , cairo Loading @@ -21,15 +22,36 @@ buildPythonPackage rec { pname = "cairocffi"; version = "1.3.0"; version = "1.4.0"; disabled = pythonOlder "3.5"; src = fetchPypi { inherit pname version; sha256 = "sha256-EIo6fLCeIDvdhQHZuq2R14bSBFYb1x6TZOizSJfEe5E="; sha256 = "sha256-UJM5syzNjXsAwiBMMnNs3njbU6MuahYtMSR40lYmzZo="; }; patches = [ # OSError: dlopen() failed to load a library: gdk-pixbuf-2.0 / gdk-pixbuf-2.0-0 (substituteAll { src = ./dlopen-paths.patch; ext = stdenv.hostPlatform.extensions.sharedLibrary; cairo = cairo.out; glib = glib.out; gdk_pixbuf = gdk-pixbuf.out; }) ./fix_test_scaled_font.patch ]; postPatch = '' substituteInPlace setup.cfg \ --replace "pytest-runner" "" \ --replace "pytest-cov" "" \ --replace "pytest-flake8" "" \ --replace "pytest-isort" "" \ --replace "--flake8 --isort" "" ''; LC_ALL = "en_US.UTF-8"; # checkPhase require at least one 'normal' font and one 'monospace', Loading @@ -38,37 +60,18 @@ buildPythonPackage rec { fontDirectories = [ freefont_ttf ]; }; propagatedBuildInputs = [ cairo cffi ] ++ lib.optional withXcffib xcffib; propagatedNativeBuildInputs = [ cffi ]; # pytestCheckHook does not work checkInputs = [ numpy pytest glibcLocales ]; propagatedBuildInputs = [ cairo cffi ] ++ lib.optional withXcffib xcffib; postPatch = '' substituteInPlace setup.cfg \ --replace "pytest-runner" "" \ --replace "pytest-cov" "" \ --replace "pytest-flake8" "" \ --replace "pytest-isort" "" \ --replace "--flake8 --isort" "" ''; # pytestCheckHook does not work checkInputs = [ numpy pikepdf pytest glibcLocales ]; checkPhase = '' py.test $out/${python.sitePackages} ''; patches = [ # OSError: dlopen() failed to load a library: gdk-pixbuf-2.0 / gdk-pixbuf-2.0-0 (substituteAll { src = ./dlopen-paths.patch; ext = stdenv.hostPlatform.extensions.sharedLibrary; cairo = cairo.out; glib = glib.out; gdk_pixbuf = gdk-pixbuf.out; }) ./fix_test_scaled_font.patch ]; meta = with lib; { homepage = "https://github.com/SimonSapin/cairocffi"; license = licenses.bsd3; Loading