Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: c5acf2738ead
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 7a8614cf9173
Choose a head ref
  • 13 commits
  • 7 files changed
  • 9 contributors

Commits on Jun 6, 2020

  1. python2Packages.pillow: freeze at 6.2.2

    Jonathan Ringer committed Jun 6, 2020
    Copy the full SHA
    7abf70b View commit details
  2. Copy the full SHA
    5b11e8d View commit details
  3. Copy the full SHA
    98d74fa View commit details
  4. mu: 1.4.7 -> 1.4.9

    magnetophon committed Jun 6, 2020
    Copy the full SHA
    94c5c9d View commit details
  5. cargo-deny: 0.6.7 -> 0.6.8

    r-ryantm committed Jun 6, 2020
    Copy the full SHA
    d2be94c View commit details
  6. corerad: 0.2.5 -> 0.2.6

    mdlayher committed Jun 6, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    c201ea1 View commit details
  7. Merge pull request #89588 from jonringer/freeze-piillow-py2

    python2Packages.pillow: freeze at 6.2.2
    adisbladis authored Jun 6, 2020
    Copy the full SHA
    243cfc5 View commit details
  8. openfst: 1.7.6 -> 1.7.7

    Mic92 committed Jun 6, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    cd8b4f6 View commit details
  9. Merge pull request #89698 from r-ryantm/auto-update/cargo-deny

    cargo-deny: 0.6.7 -> 0.6.8
    marsam authored Jun 6, 2020
    Copy the full SHA
    c9ac490 View commit details
  10. Merge pull request #89699 from mdlayher/mdl-corerad-bump

    corerad: 0.2.5 -> 0.2.6
    marsam authored Jun 6, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    5464509 View commit details
  11. Verified

    This commit was signed with the committer’s verified signature.
    primeos Michael Weiss
    Copy the full SHA
    0998dc4 View commit details

Commits on Jun 7, 2020

  1. Merge pull request #89670 from magnetophon/mu

    mu: 1.4.7 -> 1.4.9
    peterhoeg authored Jun 7, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    b74ad37 View commit details
  2. Merge pull request #89652 from marsam/fix-pillow-darwin

    python37Packages.pillow: fix build on darwin
    marsam authored Jun 7, 2020
    Copy the full SHA
    7a8614c View commit details
4 changes: 2 additions & 2 deletions pkgs/development/libraries/openfst/default.nix
Original file line number Diff line number Diff line change
@@ -2,11 +2,11 @@

stdenv.mkDerivation rec {
pname = "openfst";
version = "1.7.6";
version = "1.7.7";

src = fetchurl {
url = "http://www.openfst.org/twiki/pub/FST/FstDownload/${pname}-${version}.tar.gz";
sha256 = "03hs0196qbjfbviqn6nnb7igvv3cnpxyizlwlzmx88a6fhiq97bm";
sha256 = "1gpkpkls78xlidqq241scdz9vagxl8c4ksc4lqj4ycwx6vzyliij";
};

configureFlags = [
82 changes: 82 additions & 0 deletions pkgs/development/python-modules/pillow/6.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
{ stdenv, buildPythonPackage, fetchPypi, isPyPy
, olefile
, freetype, libjpeg, zlib, libtiff, libwebp, tcl, lcms2, tk, libX11
, openjpeg, libimagequant
, pytest, pytestrunner, pyroma, numpy
}:

buildPythonPackage rec {
pname = "Pillow";
version = "6.2.2";

src = fetchPypi {
inherit pname version;
sha256 = "0l5rv8jkdrb5q846v60v03mcq64yrhklidjkgwv6s1pda71g17yv";
};

# Disable imagefont tests, because they don't work well with infinality:
# https://github.com/python-pillow/Pillow/issues/1259
postPatch = ''
rm Tests/test_imagefont.py
'';

checkPhase = ''
runHook preCheck
python -m pytest -v -x -W always
runHook postCheck
'';

propagatedBuildInputs = [ olefile ];

checkInputs = [ pytest pytestrunner pyroma numpy ];

buildInputs = [
freetype libjpeg openjpeg libimagequant zlib libtiff libwebp tcl lcms2 ]
++ stdenv.lib.optionals (isPyPy) [ tk libX11 ];

# NOTE: we use LCMS_ROOT as WEBP root since there is not other setting for webp.
# NOTE: The Pillow install script will, by default, add paths like /usr/lib
# and /usr/include to the search paths. This can break things when building
# on a non-NixOS system that has some libraries installed that are not
# installed in Nix (for example, Arch Linux has jpeg2000 but Nix doesn't
# build Pillow with this support). We patch the `disable_platform_guessing`
# setting here, instead of passing the `--disable-platform-guessing`
# command-line option, since the command-line option doesn't work when we run
# tests.
preConfigure = let
libinclude' = pkg: ''"${pkg.out}/lib", "${pkg.out}/include"'';
libinclude = pkg: ''"${pkg.out}/lib", "${pkg.dev}/include"'';
in ''
sed -i "setup.py" \
-e 's|^FREETYPE_ROOT =.*$|FREETYPE_ROOT = ${libinclude freetype}|g ;
s|^JPEG_ROOT =.*$|JPEG_ROOT = ${libinclude libjpeg}|g ;
s|^JPEG2K_ROOT =.*$|JPEG2K_ROOT = ${libinclude openjpeg}|g ;
s|^IMAGEQUANT_ROOT =.*$|IMAGEQUANT_ROOT = ${libinclude' libimagequant}|g ;
s|^ZLIB_ROOT =.*$|ZLIB_ROOT = ${libinclude zlib}|g ;
s|^LCMS_ROOT =.*$|LCMS_ROOT = ${libinclude lcms2}|g ;
s|^TIFF_ROOT =.*$|TIFF_ROOT = ${libinclude libtiff}|g ;
s|^TCL_ROOT=.*$|TCL_ROOT = ${libinclude' tcl}|g ;
s|self\.disable_platform_guessing = None|self.disable_platform_guessing = True|g ;'
export LDFLAGS="-L${libwebp}/lib"
export CFLAGS="-I${libwebp}/include"
''
# Remove impurities
+ stdenv.lib.optionalString stdenv.isDarwin ''
substituteInPlace setup.py \
--replace '"/Library/Frameworks",' "" \
--replace '"/System/Library/Frameworks"' ""
'';

meta = with stdenv.lib; {
homepage = "https://python-pillow.github.io/";
description = "Fork of The Python Imaging Library (PIL)";
longDescription = ''
The Python Imaging Library (PIL) adds image processing
capabilities to your Python interpreter. This library
supports many file formats, and provides powerful image
processing and graphics capabilities.
'';
license = "http://www.pythonware.com/products/pil/license.htm";
maintainers = with maintainers; [ goibhniu prikhi ];
};
}
15 changes: 6 additions & 9 deletions pkgs/development/python-modules/pillow/default.nix
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
, olefile
, freetype, libjpeg, zlib, libtiff, libwebp, tcl, lcms2, tk, libX11
, openjpeg, libimagequant
, pytest, pytestrunner, pyroma, numpy
, pyroma, numpy, pytestCheckHook
, isPy3k
}:

@@ -23,15 +23,12 @@ buildPythonPackage rec {
rm Tests/test_imagefont.py
'';

checkPhase = ''
runHook preCheck
python -m pytest -v -x -W always
runHook postCheck
'';
# Disable darwin tests which require executables: `iconutil` and `screencapture`
disabledTests = stdenv.lib.optionals stdenv.isDarwin [ "test_save" "test_grab" "test_grabclipboard" ];

propagatedBuildInputs = [ olefile ];

checkInputs = [ pytest pytestrunner pyroma numpy ];
checkInputs = [ pytestCheckHook pyroma numpy ];

buildInputs = [
freetype libjpeg openjpeg libimagequant zlib libtiff libwebp tcl lcms2 ]
@@ -71,8 +68,8 @@ buildPythonPackage rec {
'';

meta = with stdenv.lib; {
homepage = "https://python-pillow.github.io/";
description = "Fork of The Python Imaging Library (PIL)";
homepage = "https://python-pillow.org/";
description = "The friendly PIL fork (Python Imaging Library)";
longDescription = ''
The Python Imaging Library (PIL) adds image processing
capabilities to your Python interpreter. This library
6 changes: 3 additions & 3 deletions pkgs/development/tools/rust/cargo-deny/default.nix
Original file line number Diff line number Diff line change
@@ -7,16 +7,16 @@

rustPlatform.buildRustPackage rec {
pname = "cargo-deny";
version = "0.6.7";
version = "0.6.8";

src = fetchFromGitHub {
owner = "EmbarkStudios";
repo = pname;
rev = version;
sha256 = "1d7zd2wpvfz1vq5ik67m6s1mscivh8b3kz4bfckw3cazk68vn9q1";
sha256 = "0nv3min7jyrv4scn7bhizc9vmqhmv6sg0nvfnr0m59pm5806vdpi";
};

cargoSha256 = "0jy10yfd9d5r0ildyxszs1ppzyd4ninl7lihdnwjqm6qifr1m5rp";
cargoSha256 = "1vywm3iqs3qnkrvi7i70sv21hznn3y3hza1i9gvcxfmh03wzhwx0";

nativeBuildInputs = [ perl pkgconfig ];

8 changes: 4 additions & 4 deletions pkgs/tools/networking/corerad/default.nix
Original file line number Diff line number Diff line change
@@ -2,20 +2,20 @@

buildGoModule rec {
pname = "corerad";
version = "0.2.5";
version = "0.2.6";

src = fetchFromGitHub {
owner = "mdlayher";
repo = "corerad";
rev = "v${version}";
sha256 = "0fi9wgv5aj3ds3r5qjyi4pxnd56psrpdy2sz84jd0sz2w48x4k4p";
sha256 = "16rwydvqkzi0jlgwpl3d4f8zd35y4lv4h5xa30ybqmwwp1k5ymf0";
};

vendorSha256 = "11r3vpimhik7y09gwb3p6pl0yf53hpaw24ry4a833fw8060rqp3q";
vendorSha256 = "1431fvi9b0id3zhgkxhiampc5avvp998lncyd5l2gn5py3qz6sdl";

buildFlagsArray = ''
-ldflags=
-X github.com/mdlayher/corerad/internal/build.linkTimestamp=1590182656
-X github.com/mdlayher/corerad/internal/build.linkTimestamp=1591474872
-X github.com/mdlayher/corerad/internal/build.linkVersion=v${version}
'';

4 changes: 2 additions & 2 deletions pkgs/tools/networking/mu/default.nix
Original file line number Diff line number Diff line change
@@ -6,13 +6,13 @@

stdenv.mkDerivation rec {
pname = "mu";
version = "1.4.7";
version = "1.4.9";

src = fetchFromGitHub {
owner = "djcb";
repo = "mu";
rev = version;
sha256 = "0inn720prhgxxc1napzd3xyzqgsvv70gqddsyzaa84h6946iz6v5";
sha256 = "1l8c72f3yd2vypc11frsmjnkr87h1q4gb6k3armpypwv6a6zl8z4";
};

postPatch = stdenv.lib.optionalString (batchSize != null) ''
11 changes: 8 additions & 3 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -5086,9 +5086,14 @@ in {

pyviz-comms = callPackage ../development/python-modules/pyviz-comms { };

pillow = callPackage ../development/python-modules/pillow {
inherit (pkgs) freetype libjpeg zlib libtiff libwebp tcl lcms2 tk;
inherit (pkgs.xorg) libX11;
pillow = if isPy27 then
callPackage ../development/python-modules/pillow/6.nix {
inherit (pkgs) freetype libjpeg zlib libtiff libwebp tcl lcms2 tk;
inherit (pkgs.xorg) libX11;
} else
callPackage ../development/python-modules/pillow {
inherit (pkgs) freetype libjpeg zlib libtiff libwebp tcl lcms2 tk;
inherit (pkgs.xorg) libX11;
};

pkgconfig = callPackage ../development/python-modules/pkgconfig {