From 99f63b4ded22117186eeba671c1657d155b45a20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Mon, 1 Aug 2016 20:35:09 +0200 Subject: [PATCH] pythonPackages.mutagen: 1.27 -> 1.32 (Not updating to the latest version, 1.34, because it breaks e.g. 'beets'. See https://github.com/beetbox/beets/issues/2153.) The new version requires locale / i18n to be set-up for tests or else this message is thrown: RuntimeError: This test suite needs a unicode locale encoding. Try setting LANG=C.UTF-8 Also, remove a test that currently fails due to the python builder in nixpkgs. PR with fix: https://github.com/NixOS/nixpkgs/pull/17430 ("python: add file encoding to run_setup.py"). --- pkgs/top-level/python-packages.nix | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 21617202510e3c..2e70212bc13214 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -13479,15 +13479,26 @@ in modules // { }; mutagen = buildPythonPackage (rec { - name = "mutagen-1.27"; + name = "mutagen-1.32"; src = pkgs.fetchurl { url = "mirror://pypi/m/mutagen/${name}.tar.gz"; - sha256 = "cc884fe1e20fe220be7ce7c3b269f4cadc69a8310150a3a41162fba1ca9c88bd"; + sha256 = "1d9sxl442xjj7pdyjj5h0dsjyd7d3wqswr8icqqgqdmg9k8dw8bp"; }; # Needed for tests only - buildInputs = [ pkgs.faad2 pkgs.flac pkgs.vorbis-tools pkgs.liboggz ]; + buildInputs = [ pkgs.faad2 pkgs.flac pkgs.vorbis-tools pkgs.liboggz + pkgs.glibcLocales + ]; + LC_ALL = "en_US.UTF-8"; + + # Remove test that fails due to missing encoding in nix_run_setup.py, a + # file that buildPythonPackage copies to source trees at build time. + # PR with fix: https://github.com/NixOS/nixpkgs/pull/17430 + # ("python: add file encoding to run_setup.py") + preBuild = '' + rm tests/test_encoding.py + ''; meta = { description = "Python multimedia tagging library";