pythonPackages.konfig: fix tests
This commit is contained in:
parent
c7a6483309
commit
0862ca375c
@ -1,4 +1,4 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi, isPy3k, writeText, configparser, six }:
|
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k, writeText, configparser, six, pytest, glibcLocales }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "konfig";
|
pname = "konfig";
|
||||||
@ -8,9 +8,12 @@ buildPythonPackage rec {
|
|||||||
# the standard library in python 3.2 or above.
|
# the standard library in python 3.2 or above.
|
||||||
disabled = isPy3k;
|
disabled = isPy3k;
|
||||||
|
|
||||||
src = fetchPypi {
|
# PyPI tarball is missing utf8.ini, required for tests
|
||||||
inherit pname version;
|
src = fetchFromGitHub {
|
||||||
sha256 = "7aa4c6463d6c13f4c98c02a998cbef4729da9ad69b676627acc8d3b3efb02b57";
|
owner = "mozilla-services";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "1h780fbrv275dcik4cs3rincza805z6q726b48r4a0qmh5d8160c";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ configparser six ];
|
propagatedBuildInputs = [ configparser six ];
|
||||||
@ -31,6 +34,12 @@ buildPythonPackage rec {
|
|||||||
classifiers=classifiers,
|
classifiers=classifiers,
|
||||||
'') ];
|
'') ];
|
||||||
|
|
||||||
|
checkInputs = [ pytest glibcLocales ];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
LC_ALL=en_US.utf8 pytest -v konfig/tests
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Yet Another Config Parser";
|
description = "Yet Another Config Parser";
|
||||||
homepage = "https://github.com/mozilla-services/konfig";
|
homepage = "https://github.com/mozilla-services/konfig";
|
||||||
|
Loading…
Reference in New Issue
Block a user