at 22.05-pre 1.4 kB view raw
1{ lib, buildPythonPackage, fetchFromGitHub, isPy3k, writeText, configparser, six, pytest, glibcLocales }: 2 3buildPythonPackage rec { 4 pname = "konfig"; 5 version = "1.1"; 6 7 # konfig unconditionaly depend on configparser, even if it is part of 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 ]; 20 21 patches = [ (writeText "konfig.patch" '' 22 diff --git a/setup.py b/setup.py 23 index 96fd858..bb4db06 100644 24 --- a/setup.py 25 +++ b/setup.py 26 @@ -20,7 +20,7 @@ setup(name='konfig', 27 author_email="tarek@mozilla.com", 28 include_package_data=True, 29 install_requires = [ 30 - 'configparser', 'argparse', 'six' 31 + 'configparser', 'six' 32 ], 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"; 45 homepage = "https://github.com/mozilla-services/konfig"; 46 license = licenses.mpl20; 47 }; 48}