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: 74e25d2f534d
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: 2a7c3484fd22
Choose a head ref
  • 3 commits
  • 3 files changed
  • 2 contributors

Commits on Mar 18, 2019

  1. python.pkgs.distro: Re-enable the package for now

    Most tests are fine (only 20 out of 173 fail, 10 because lsb_release is
    not available or returns exit code 3 and the other 10 might also fail
    due to the sandboxed build environment).
    Manual tests show that distro works as intended in a normal environment.
    
    See NixOS/nixpkgs@9382d2e
    
    (cherry picked from commit 871cd75)
    Reason: The package works as expected outside of the build sandbox and
    the packages google-cloud-sdk-gce and google-compute-engine depend on it
    (and soon also gns3-gui and gns3-server).
    primeos committed Mar 18, 2019
    Copy the full SHA
    c857cab View commit details
  2. arx-libertatis: 2018-08-26 -> 2019-02-16 (#57873)

    (cherry picked from commit d10f3e9)
    rnhmjoj authored and xeji committed Mar 18, 2019

    Verified

    This commit was signed with the committer’s verified signature.
    delroth Pierre Bourdon
    Copy the full SHA
    7827ea7 View commit details
  3. Merge pull request #57877 from primeos/backports

    [19.03] python.pkgs.distro: Re-enable the package
    primeos authored Mar 18, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    2a7c348 View commit details
Showing with 63 additions and 18 deletions.
  1. +9 −7 pkgs/development/python-modules/distro/default.nix
  2. +31 −0 pkgs/development/python-modules/distro/nixos.patch
  3. +23 −11 pkgs/games/arx-libertatis/default.nix
16 changes: 9 additions & 7 deletions pkgs/development/python-modules/distro/default.nix
Original file line number Diff line number Diff line change
@@ -4,23 +4,25 @@ buildPythonPackage rec {
pname = "distro";
version = "1.4.0";

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

# TODO: Enable more tests on NixOS (20 out of 173 are failing, 10 due to the
# missing lsb_release binary):
patches = [ ./nixos.patch ];

checkInputs = [ pytest pytestcov ];

checkPhase = ''
py.test
'';

src = fetchPypi {
inherit pname version;
sha256 = "362dde65d846d23baee4b5c058c8586f219b5a54be1cf5fc6ff55c4578392f57";
};

meta = with stdenv.lib; {
homepage = https://github.com/nir0s/distro;
description = "Linux Distribution - a Linux OS platform information API.";
license = licenses.asl20;
maintainers = with maintainers; [ nand0p ];
# Many failing tests
broken = true;
};
}
31 changes: 31 additions & 0 deletions pkgs/development/python-modules/distro/nixos.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
diff --git a/tests/test_distro.py b/tests/test_distro.py
index 5521068..4e1bab8 100644
--- a/tests/test_distro.py
+++ b/tests/test_distro.py
@@ -432,7 +432,7 @@ class TestOSRelease:
self._test_outcome(desired_outcome)


-@pytest.mark.skipif(not IS_LINUX, reason='Irrelevant on non-linux')
+@pytest.mark.skip(reason='lsb_release is not available and would return exit code 3')
class TestLSBRelease(DistroTestCase):

def setup_method(self, test_method):
@@ -919,7 +919,7 @@ class TestDistroRelease:
self._test_outcome(desired_outcome, 'cloudlinux', '7', 'redhat')


-@pytest.mark.skipif(not IS_LINUX, reason='Irrelevant on non-linux')
+@pytest.mark.skip(reason='Unknown (TODO)')
class TestOverall(DistroTestCase):
"""Test a LinuxDistribution object created with default arguments.

@@ -1618,7 +1618,7 @@ def _bad_os_listdir(path='.'):
raise OSError()


-@pytest.mark.skipIf(not IS_LINUX, reason='Irrelevant on non-linx')
+@pytest.mark.skip(reason='Unknown (TODO)')
class TestOverallWithEtcNotReadable(TestOverall):
def setup_method(self, test_method):
self._old_listdir = os.listdir
34 changes: 23 additions & 11 deletions pkgs/games/arx-libertatis/default.nix
Original file line number Diff line number Diff line change
@@ -1,24 +1,36 @@
{ stdenv, fetchFromGitHub, cmake, zlib, boost,
openal, glm, freetype, libGLU_combined, glew, SDL2,
dejavu_fonts, inkscape, optipng, imagemagick }:
{ stdenv, fetchFromGitHub, cmake, zlib, boost
, openal, glm, freetype, libGLU, SDL2, epoxy
, dejavu_fonts, inkscape, optipng, imagemagick
, withCrashReporter ? !stdenv.isDarwin
, qt5 ? null
, curl ? null
, gdb ? null
}:

with stdenv.lib;

stdenv.mkDerivation rec {
name = "arx-libertatis-${version}";
version = "2018-08-26";
version = "2019-02-16";

src = fetchFromGitHub {
owner = "arx";
repo = "ArxLibertatis";
rev = "7b551739cc22fa25dae83bcc1a2b784ddecc729c";
sha256 = "1ybv3p74rywn0ajdbw7pyk7pd7py1db9h6x2pav2d28ndkkj4z8n";
rev = "fbce6ccbc7f58583f33f29b838c38ef527edc267";
sha256 = "0qrygp09dqhpb5q6a1zl6l03qh9bi7xcahd8hy9177z1cix3k0kz";
};

buildInputs = [
cmake zlib boost openal glm
freetype libGLU_combined glew SDL2 inkscape
optipng imagemagick

nativeBuildInputs = [
cmake inkscape imagemagick optipng
];

buildInputs = [
zlib boost openal glm
freetype libGLU SDL2 epoxy
] ++ optionals withCrashReporter [ qt5.qtbase curl ]
++ optionals stdenv.isLinux [ gdb ];

cmakeFlags = [
"-DDATA_DIR_PREFIXES=$out/share"
"-DImageMagick_convert_EXECUTABLE=${imagemagick.out}/bin/convert"
@@ -33,7 +45,7 @@ stdenv.mkDerivation rec {
$out/share/games/arx/misc/dejavusansmono.ttf
'';

meta = with stdenv.lib; {
meta = {
description = ''
A cross-platform, open source port of Arx Fatalis, a 2002
first-person role-playing game / dungeon crawler