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: c7efe7896360
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: 721b391f930b
Choose a head ref
  • 12 commits
  • 12 files changed
  • 7 contributors

Commits on Jul 4, 2019

  1. pythonPackages.seekpath: ignore broken test

    Jonathan Ringer committed Jul 4, 2019
    Copy the full SHA
    7e2ffea View commit details
  2. pythonPackages.sumo: fix tests

    Jonathan Ringer committed Jul 4, 2019

    Verified

    This commit was signed with the committer’s verified signature.
    veprbl Dmitry Kalinkin
    Copy the full SHA
    78f9c2d View commit details
  3. pythonPackages.maxminddb: init at 1.4.1

    Jonathan Ringer committed Jul 4, 2019

    Verified

    This commit was signed with the committer’s verified signature.
    veprbl Dmitry Kalinkin
    Copy the full SHA
    4f1a6fd View commit details
  4. pythonPackages.geoip2: init at 2.9.0

    Jonathan Ringer committed Jul 4, 2019
    Copy the full SHA
    79b015d View commit details
  5. pythonPackages.sopel: 6.6.8 -> 6.6.9 and fix build

    Jonathan Ringer committed Jul 4, 2019
    Copy the full SHA
    ce4743c View commit details

Commits on Jul 5, 2019

  1. deepin.dde-session-ui: 4.9.11 -> 4.9.12

    - Update to version 4.9.12
    - Revise hard coded paths
    - Wrap binaries in lib/deepin-daemon/
    romildo committed Jul 5, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    b0944be View commit details
  2. Merge pull request #63781 from romildo/upd.deepin.dde-session-ui

    deepin.dde-session-ui: 4.9.11 -> 4.9.12
    romildo authored Jul 5, 2019
    Copy the full SHA
    d94a4c8 View commit details
  3. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    66d69c8 View commit details
  4. curseofwar,curseofwar-sdl: init at 1.2.0

    fgaz authored and Matthieu Coudron committed Jul 5, 2019

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    rycee Robert Helgesson
    Copy the full SHA
    1c67718 View commit details
  5. Merge pull request #64303 from jonringer/sumo-fix-tests

    pythonPackages.{seekpath,sumo,sopel}: fix builds
    teto authored Jul 5, 2019

    Verified

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

    This commit was signed with the committer’s verified signature.
    ehamberg Erlend Hamberg
    Copy the full SHA
    698f3e9 View commit details
  7. lkl: 2018-08-22 -> 2019-06-20

    Fixes the build on 32-bit ARM, which enables the generation of SD card images
    on these platforms.
    lopsided98 authored and Matthieu Coudron committed Jul 5, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    721b391 View commit details
4 changes: 2 additions & 2 deletions pkgs/applications/audio/lollypop/default.nix
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@

python3.pkgs.buildPythonApplication rec {
pname = "lollypop";
version = "1.0.12";
version = "1.1.3.1";

format = "other";
doCheck = false;
@@ -30,7 +30,7 @@ python3.pkgs.buildPythonApplication rec {
url = "https://gitlab.gnome.org/World/lollypop";
rev = "refs/tags/${version}";
fetchSubmodules = true;
sha256 = "0jc40p2yw3zp035c87crav2lq0iraf35ag9w26vzmbjvgpvwzb86";
sha256 = "1mini63ngmi62g3xq0bvq316k2vv3ck7q5qn3mfqph38na605waj";
};

nativeBuildInputs = [
9 changes: 5 additions & 4 deletions pkgs/applications/virtualization/lkl/default.nix
Original file line number Diff line number Diff line change
@@ -2,8 +2,9 @@
, buildPackages }:

stdenv.mkDerivation rec {
name = "lkl-2018-08-22";
rev = "5221c547af3d29582703f01049617a6bf9f6232a";
pname = "lkl";
version = "2019-06-20";
rev = "0a4ebeadad12b94db665b8daf30e44e949a02d90";

outputs = [ "dev" "lib" "out" ];

@@ -15,7 +16,7 @@ stdenv.mkDerivation rec {
inherit rev;
owner = "lkl";
repo = "linux";
sha256 = "1k2plyx40xaphm8zsk2dd1lyv6dhsp7kj6hfmdgiamvl80bjajqy";
sha256 = "09y9ci3j0lp3z74h577ng2s9a4n4glqpqndyc9iy6wdqaj764gm6";
};

# Fix a /usr/bin/env reference in here that breaks sandboxed builds
@@ -58,7 +59,7 @@ stdenv.mkDerivation rec {
overhead
'';
homepage = https://github.com/lkl/linux/;
platforms = [ "x86_64-linux" "aarch64-linux" ]; # Darwin probably works too but I haven't tested it
platforms = [ "x86_64-linux" "aarch64-linux" "armv7l-linux" "armv6l-linux" ]; # Darwin probably works too but I haven't tested it
license = licenses.gpl2;
maintainers = with maintainers; [ copumpkin ];
};
94 changes: 77 additions & 17 deletions pkgs/desktops/deepin/dde-session-ui/default.nix
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
{ stdenv, fetchFromGitHub, pkgconfig, qmake, qtsvg, qttools,
qtx11extras, xkeyboard_config, xorg, lightdm_qt, gsettings-qt,
dde-qt-dbus-factory, deepin-gettext-tools, dtkcore, dtkwidget,
deepin-desktop-schemas, deepin, hicolor-icon-theme, wrapGAppsHook }:
{ stdenv, fetchFromGitHub, pkgconfig, qmake, dbus, dde-daemon,
dde-qt-dbus-factory, deepin, deepin-desktop-schemas,
deepin-gettext-tools, deepin-icon-theme, deepin-wallpapers, dtkcore,
dtkwidget, gnugrep, gsettings-qt, hicolor-icon-theme, lightdm_qt,
onboard, qtsvg, qttools, qtx11extras, setxkbmap, utillinux, which,
xkeyboard_config, xorg, xrandr, wrapGAppsHook }:

stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "dde-session-ui";
version = "4.9.11";
version = "4.9.12";

src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
sha256 = "16nrlqw8p9s4ncypg4q2df9xpg37y6hqcjn0zmrsfnc5j3i0z82a";
sha256 = "00i45xv87wx9cww1d445lg6zjbhda5kki8nhsaav8gf2d4cmwzf4";
};

nativeBuildInputs = [
@@ -25,34 +27,92 @@ stdenv.mkDerivation rec {
];

buildInputs = [
dbus
dde-daemon
dde-qt-dbus-factory
deepin-desktop-schemas
deepin-icon-theme
deepin-wallpapers
dtkcore
dtkwidget
gnugrep
gsettings-qt
hicolor-icon-theme
lightdm_qt
onboard
qtsvg
qtx11extras
setxkbmap
utillinux
which
xkeyboard_config
xorg.libXcursor
xorg.libXrandr
xorg.libXtst
xkeyboard_config
hicolor-icon-theme
deepin-desktop-schemas
xrandr
];

postPatch = ''
searchHardCodedPaths
patchShebangs translate_generation.sh
patchShebangs translate_desktop.sh
sed -i translate_desktop.sh -e "s,/usr/bin/deepin-desktop-ts-convert,deepin-desktop-ts-convert,"
searchHardCodedPaths # debugging
patchShebangs translate_generation.sh translate_desktop.sh
substituteInPlace translate_desktop.sh --replace "/usr/bin/deepin-desktop-ts-convert" "deepin-desktop-ts-convert"
find -type f -exec sed -i -e "s,path = /etc,path = $out/etc," {} +
find -type f -exec sed -i -e "s,path = /usr,path = $out," {} +
find -type f -exec sed -i -e "s,Exec=/usr,Exec=$out," {} +
find -type f -exec sed -i -e "s,/usr/share/dde-session-ui,$out/share/dde-session-ui," {} +
sed -i global_util/xkbparser.h -e "s,/usr/share/X11/xkb/rules/base.xml,${xkeyboard_config}/share/X11/xkb/rules/base.xml,"
sed -i lightdm-deepin-greeter/scripts/lightdm-deepin-greeter -e "s,/usr/bin/lightdm-deepin-greeter,$out/bin/lightdm-deepin-greeter,"
substituteInPlace dde-osd/dde-osd_autostart.desktop --replace "Exec=/usr/lib/deepin-daemon/dde-osd" "Exec=$out/lib/deepin-daemon/dde-osd"
substituteInPlace dde-osd/com.deepin.dde.osd.service --replace "Exec=/usr/lib/deepin-daemon/dde-osd" "Exec=$out/lib/deepin-daemon/dde-osd"
substituteInPlace dde-lock/com.deepin.dde.lockFront.service --replace "Exec=/usr/bin/dde-lock" "Exec=$out/bin/dde-lock"
substituteInPlace dmemory-warning-dialog/com.deepin.dde.MemoryWarningDialog.service --replace "Exec=/usr/bin/dmemory-warning-dialog" "Exec=$out/bin/dmemory-warning-dialog"
substituteInPlace dde-warning-dialog/com.deepin.dde.WarningDialog.service --replace "Exec=/usr/lib/deepin-daemon/dde-warning-dialog" "Exec=$out/lib/deepin-daemon/dde-warning-dialog"
substituteInPlace dde-shutdown/com.deepin.dde.shutdownFront.service --replace "Exec=/usr/bin/dde-shutdown" "Exec=$out/bin/dde-shutdown"
substituteInPlace dde-welcome/com.deepin.dde.welcome.service --replace "Exec=/usr/lib/deepin-daemon/dde-welcome" "Exec=$out/lib/deepin-daemon/dde-welcome"
substituteInPlace session-ui-guardien/session-ui-guardien.desktop --replace "Exec=/usr/bin/session-ui-guardien" "Exec=$out/bin/session-ui-guardien"
substituteInPlace lightdm-deepin-greeter/lightdm-deepin-greeter.desktop --replace "Exec=/usr/bin/deepin-greeter" "Exec=$out/bin/deepin-greeter"
substituteInPlace misc/applications/deepin-toggle-desktop.desktop.in --replace "Exec=/usr/lib/deepin-daemon/desktop-toggle" "Exec=${dde-daemon}/lib/deepin-daemon/desktop-toggle"
# Uncomment (and remove space after $) after packaging deepin-system-monitor
#substituteInPlace dde-shutdown/view/contentwidget.cpp --replace "/usr/bin/deepin-system-monitor" "$ {deepin-system-monitor}/bin/deepin-system-monitor"
substituteInPlace dde-offline-upgrader/main.cpp --replace "dbus-send" "${dbus}/bin/dbus-send"
substituteInPlace dde-osd/kblayoutindicator.cpp --replace "dbus-send" "${dbus}/bin/dbus-send"
substituteInPlace dde-shutdown/view/contentwidget.cpp --replace "/usr/share/backgrounds/deepin" "${deepin-wallpapers}/share/backgrounds/deepin"
substituteInPlace dde-welcome/mainwidget.cpp --replace "dbus-send" "${dbus}/bin/dbus-send"
substituteInPlace dmemory-warning-dialog/src/buttondelegate.cpp --replace "dbus-send" "${dbus}/bin/dbus-send"
substituteInPlace dmemory-warning-dialog/src/buttondelegate.cpp --replace "kill" "${utillinux}/bin/dbus-send"
substituteInPlace global_util/xkbparser.h --replace "/usr/share/X11/xkb/rules/base.xml" "${xkeyboard_config}/share/X11/xkb/rules/base.xml"
substituteInPlace lightdm-deepin-greeter/deepin-greeter --replace "/etc/deepin/greeters.d" "$out/etc/deepin/greeters.d"
substituteInPlace lightdm-deepin-greeter/main.cpp --replace "/usr/share/icons/deepin" "${deepin-icon-theme}/share/icons/deepin"
substituteInPlace lightdm-deepin-greeter/scripts/00-xrandr --replace "egrep" "${gnugrep}/bin/egrep"
substituteInPlace lightdm-deepin-greeter/scripts/00-xrandr --replace "xrandr" "${xrandr}/bin/xrandr"
substituteInPlace lightdm-deepin-greeter/scripts/lightdm-deepin-greeter --replace "/usr/bin/lightdm-deepin-greeter" "$out/bin/lightdm-deepin-greeter"
substituteInPlace session-ui-guardien/guardien.cpp --replace "dde-lock" "$out/bin/dde-lock"
substituteInPlace session-ui-guardien/guardien.cpp --replace "dde-shutdown" "$out/bin/dde-shutdown"
substituteInPlace session-widgets/lockworker.cpp --replace "dde-switchtogreeter" "$out/bin/dde-switchtogreeter"
substituteInPlace session-widgets/lockworker.cpp --replace "which" "${which}/bin/which"
substituteInPlace session-widgets/userinfo.cpp --replace "/usr/share/wallpapers/deepin" "${deepin-wallpapers}/share/wallpapers/deepin"
substituteInPlace widgets/fullscreenbackground.cpp --replace "/usr/share/wallpapers/deepin" "${deepin-wallpapers}/share/wallpapers/deepin"
substituteInPlace widgets/kblayoutwidget.cpp --replace "setxkbmap" "${setxkbmap}/bin/setxkbmap"
substituteInPlace widgets/virtualkbinstance.cpp --replace "onboard" "${onboard}/bin/onboard"
# fix default background url
sed -i widgets/*.cpp boxframe/*.cpp -e 's,/usr/share/backgrounds/default_background.jpg,/usr/share/backgrounds/deepin/desktop.jpg,'
substituteInPlace widgets/fullscreenbackground.cpp --replace "/usr/share/backgrounds/default_background.jpg" "${deepin-wallpapers}/share/backgrounds/deepin/desktop.jpg"
# NOTES
# - on deepin linux /usr/share/icons/default/index.theme is controlled by alternatives, without an equivalent mechanism in NixOS
# - do not wrap dde-dman-portal related files: it appears it has been removed: https://github.com/linuxdeepin/dde-session-ui/commit/3bd028cf135ad22c784c0146e447ef34a69af768
'';

postFixup = ''
# wrapGAppsHook does not work with binaries outside of $out/bin or $out/libexec
for binary in $out/lib/deepin-daemon/*; do
wrapProgram $binary "''${gappsWrapperArgs[@]}"
done
searchHardCodedPaths $out # debugging
'';

passthru.updateScript = deepin.updateScript { inherit name; };
29 changes: 29 additions & 0 deletions pkgs/development/python-modules/geoip2/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{ buildPythonPackage, lib, fetchPypi, isPy27
, ipaddress
, maxminddb
, mock
, requests
, requests-mock
}:

buildPythonPackage rec {
version = "2.9.0";
pname = "geoip2";

src = fetchPypi {
inherit pname version;
sha256 = "1w7cay5q6zawjzivqbwz5cqx1qbdjw6kbriccb7l46p7b39fkzzp";
};

propagatedBuildInputs = [ requests maxminddb ]
++ lib.optionals isPy27 [ ipaddress ];

checkInputs = [ requests-mock ];

meta = with lib; {
description = "MaxMind GeoIP2 API";
homepage = "https://www.maxmind.com/en/home";
license = licenses.apsl20;
maintainers = with maintainers; [ ];
};
}
26 changes: 26 additions & 0 deletions pkgs/development/python-modules/maxminddb/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{ buildPythonPackage, lib, fetchPypi
, ipaddress
, mock
, nose
}:

buildPythonPackage rec {
version = "1.4.1";
pname = "maxminddb";

src = fetchPypi {
inherit pname version;
sha256 = "04mpilsj76m29id5xfi8mmasdmh27ldn7r0dmh2rj6a8v2y5256z";
};

propagatedBuildInputs = [ ipaddress ];

checkInputs = [ nose mock ];

meta = with lib; {
description = "Reader for the MaxMind DB format";
homepage = "https://www.maxmind.com/en/home";
license = licenses.apsl20;
maintainers = with maintainers; [ ];
};
}
13 changes: 10 additions & 3 deletions pkgs/development/python-modules/seekpath/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, buildPythonPackage, fetchPypi, numpy, future, spglib, glibcLocales }:
{ stdenv, buildPythonPackage, fetchPypi, numpy, future, spglib, glibcLocales, pytest }:

buildPythonPackage rec {
pname = "seekpath";
@@ -7,17 +7,24 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "b61dadba82acc0838402981b7944155adc092b114ca81f53f61b1d498a512e3a";
};
};

LC_ALL = "en_US.utf-8";

propagatedBuildInputs = [ numpy spglib future ];

nativeBuildInputs = [ glibcLocales ];

checkInputs = [ pytest ];

# I don't know enough about crystal structures to fix
checkPhase = ''
pytest . -k 'not oI2Y'
'';

meta = with stdenv.lib; {
description = "A module to obtain and visualize band paths in the Brillouin zone of crystal structures.";
homepage = https://github.com/giovannipizzi/seekpath;
homepage = "https://github.com/giovannipizzi/seekpath";
license = licenses.mit;
maintainers = with maintainers; [ psyanticy ];
};
44 changes: 29 additions & 15 deletions pkgs/development/python-modules/sopel/default.nix
Original file line number Diff line number Diff line change
@@ -1,33 +1,48 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, pytest
{ stdenv, buildPythonPackage, fetchPypi, isPyPy
, dnspython
, geoip2
, ipython
, praw
, xmltodict
, pytz
, pyenchant
, pygeoip
, pytest
, python
, isPyPy
, isPy27
, pytz
, xmltodict
}:

buildPythonPackage rec {
pname = "sopel";
version = "6.6.8";
version = "6.6.9";
disabled = isPyPy;

src = fetchPypi {
inherit pname version;
sha256 = "c32aa69ba8a9ae55daf6dbc265d7f56fe6026edef3bb81aeea7912b7b6b9f5b7";
sha256 = "1arldn3p2yp09wnn2cw50r5ri303d5jdsjnf6lgfl82jhfmk49a2";
};

buildInputs = [ pytest ];
propagatedBuildInputs = [ praw xmltodict pytz pyenchant pygeoip ];
propagatedBuildInputs = [
dnspython
geoip2
ipython
praw
pyenchant
pygeoip
pytz
xmltodict
];

# remove once https://github.com/sopel-irc/sopel/pull/1653 lands
postPatch = ''
substituteInPlace requirements.txt \
--replace "praw<6.0.0" "praw<7.0.0"
'';

disabled = isPyPy || isPy27;
checkInputs = [ pytest ];

checkPhase = ''
${python.interpreter} test/*.py #*/
HOME=$PWD # otherwise tries to create tmpdirs at root
pytest .
'';

meta = with stdenv.lib; {
@@ -36,5 +51,4 @@ buildPythonPackage rec {
license = licenses.efl20;
maintainers = with maintainers; [ mog ];
};

}
26 changes: 22 additions & 4 deletions pkgs/development/python-modules/sumo/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
{ stdenv, buildPythonPackage, fetchFromGitHub, numpy, scipy, spglib, pymatgen, h5py, matplotlib, seekpath, phonopy }:
{ stdenv, buildPythonPackage, fetchFromGitHub, isPy27
, h5py
, matplotlib
, numpy
, phonopy
, pymatgen
, pytest
, scipy
, seekpath
, spglib
}:

buildPythonPackage rec {
pname = "sumo";
@@ -13,12 +23,20 @@ buildPythonPackage rec {
};

propagatedBuildInputs = [ numpy scipy spglib pymatgen h5py matplotlib seekpath phonopy ];


checkInputs = [ pytest ];

checkPhase = ''
pytest .
'';

# tests have type annotations, can only run on 3.5+
doCheck = (!isPy27);

meta = with stdenv.lib; {
description = "Toolkit for plotting and analysis of ab initio solid-state calculation data";
homepage = https://github.com/SMTG-UCL/sumo;
homepage = "https://github.com/SMTG-UCL/sumo";
license = licenses.mit;
maintainers = with maintainers; [ psyanticy ];
};
}

Loading