diff options
author | Robert Schütz <robert.schuetz@stud.uni-heidelberg.de> | 2018-02-22 01:22:48 +0100 |
---|---|---|
committer | Robert Schütz <robert.schuetz@stud.uni-heidelberg.de> | 2018-02-22 01:46:11 +0100 |
commit | 0862ca375c97d30aba8bb724f4f4358eba73de68 (patch) | |
tree | 022418d59959b8ca77a0b226ed7d66f62b9db70d | |
parent | c7a6483309c5ba08a6fccbfe1d211f98a9061b24 (diff) | |
download | nixlib-0862ca375c97d30aba8bb724f4f4358eba73de68.tar nixlib-0862ca375c97d30aba8bb724f4f4358eba73de68.tar.gz nixlib-0862ca375c97d30aba8bb724f4f4358eba73de68.tar.bz2 nixlib-0862ca375c97d30aba8bb724f4f4358eba73de68.tar.lz nixlib-0862ca375c97d30aba8bb724f4f4358eba73de68.tar.xz nixlib-0862ca375c97d30aba8bb724f4f4358eba73de68.tar.zst nixlib-0862ca375c97d30aba8bb724f4f4358eba73de68.zip |
pythonPackages.konfig: fix tests
-rw-r--r-- | pkgs/development/python-modules/konfig/default.nix | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/konfig/default.nix b/pkgs/development/python-modules/konfig/default.nix index aba97c7204e3..e7062bad5ee7 100644 --- a/pkgs/development/python-modules/konfig/default.nix +++ b/pkgs/development/python-modules/konfig/default.nix @@ -1,4 +1,4 @@ -{ lib, buildPythonPackage, fetchPypi, isPy3k, writeText, configparser, six }: +{ lib, buildPythonPackage, fetchFromGitHub, isPy3k, writeText, configparser, six, pytest, glibcLocales }: buildPythonPackage rec { pname = "konfig"; @@ -8,9 +8,12 @@ buildPythonPackage rec { # the standard library in python 3.2 or above. disabled = isPy3k; - src = fetchPypi { - inherit pname version; - sha256 = "7aa4c6463d6c13f4c98c02a998cbef4729da9ad69b676627acc8d3b3efb02b57"; + # PyPI tarball is missing utf8.ini, required for tests + src = fetchFromGitHub { + owner = "mozilla-services"; + repo = pname; + rev = version; + sha256 = "1h780fbrv275dcik4cs3rincza805z6q726b48r4a0qmh5d8160c"; }; propagatedBuildInputs = [ configparser six ]; @@ -31,6 +34,12 @@ buildPythonPackage rec { classifiers=classifiers, '') ]; + checkInputs = [ pytest glibcLocales ]; + + checkPhase = '' + LC_ALL=en_US.utf8 pytest -v konfig/tests + ''; + meta = with lib; { description = "Yet Another Config Parser"; homepage = "https://github.com/mozilla-services/konfig"; |