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
1
-
{ lib, buildPythonPackage, fetchPypi, isPy3k, writeText, configparser, six }:
1
1
+
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k, writeText, configparser, six, pytest, glibcLocales }:
2
2
3
3
buildPythonPackage rec {
4
4
pname = "konfig";
···
8
8
# the standard library in python 3.2 or above.
9
9
disabled = isPy3k;
10
10
11
11
-
src = fetchPypi {
12
12
-
inherit pname version;
13
13
-
sha256 = "7aa4c6463d6c13f4c98c02a998cbef4729da9ad69b676627acc8d3b3efb02b57";
11
11
+
# PyPI tarball is missing utf8.ini, required for tests
12
12
+
src = fetchFromGitHub {
13
13
+
owner = "mozilla-services";
14
14
+
repo = pname;
15
15
+
rev = version;
16
16
+
sha256 = "1h780fbrv275dcik4cs3rincza805z6q726b48r4a0qmh5d8160c";
14
17
};
15
18
16
19
propagatedBuildInputs = [ configparser six ];
···
30
33
zip_safe=False,
31
34
classifiers=classifiers,
32
35
'') ];
36
36
+
37
37
+
checkInputs = [ pytest glibcLocales ];
38
38
+
39
39
+
checkPhase = ''
40
40
+
LC_ALL=en_US.utf8 pytest -v konfig/tests
41
41
+
'';
33
42
34
43
meta = with lib; {
35
44
description = "Yet Another Config Parser";