1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 06:31:02 +00:00

pythonPackages.konfig: fix tests

This commit is contained in:
Robert Schütz 2018-02-22 01:22:48 +01:00
parent c7a6483309
commit 0862ca375c

View file

@ -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";