tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
pythonPackages.konfig: fix tests
Robert Schütz
8 years ago
0862ca37
c7a64833
+13
-4
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
konfig
default.nix
+13
-4
pkgs/development/python-modules/konfig/default.nix
···
1
-
{ lib, buildPythonPackage, fetchPypi, isPy3k, writeText, configparser, six }:
2
3
buildPythonPackage rec {
4
pname = "konfig";
···
8
# the standard library in python 3.2 or above.
9
disabled = isPy3k;
10
11
-
src = fetchPypi {
12
-
inherit pname version;
13
-
sha256 = "7aa4c6463d6c13f4c98c02a998cbef4729da9ad69b676627acc8d3b3efb02b57";
0
0
0
14
};
15
16
propagatedBuildInputs = [ configparser six ];
···
30
zip_safe=False,
31
classifiers=classifiers,
32
'') ];
0
0
0
0
0
0
33
34
meta = with lib; {
35
description = "Yet Another Config Parser";
···
1
+
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k, writeText, configparser, six, pytest, glibcLocales }:
2
3
buildPythonPackage rec {
4
pname = "konfig";
···
8
# the standard library in python 3.2 or above.
9
disabled = isPy3k;
10
11
+
# PyPI tarball is missing utf8.ini, required for tests
12
+
src = fetchFromGitHub {
13
+
owner = "mozilla-services";
14
+
repo = pname;
15
+
rev = version;
16
+
sha256 = "1h780fbrv275dcik4cs3rincza805z6q726b48r4a0qmh5d8160c";
17
};
18
19
propagatedBuildInputs = [ configparser six ];
···
33
zip_safe=False,
34
classifiers=classifiers,
35
'') ];
36
+
37
+
checkInputs = [ pytest glibcLocales ];
38
+
39
+
checkPhase = ''
40
+
LC_ALL=en_US.utf8 pytest -v konfig/tests
41
+
'';
42
43
meta = with lib; {
44
description = "Yet Another Config Parser";