1{ stdenv
2, lib
3, isPy3k
4, buildPythonPackage
5, fetchPypi
6, Babel
7}:
8
9buildPythonPackage rec {
10 pname = "babelgladeextractor";
11 version = "0.7.0";
12 disabled = (!isPy3k); # uses python3 specific file io in setup.py
13
14 src = fetchPypi {
15 pname = "BabelGladeExtractor";
16 inherit version;
17 extension = "tar.bz2";
18 sha256 = "160p4wi2ss69g141c2z59azvrhn7ymy5m9h9d65qrcabigi0by5w";
19 };
20
21 propagatedBuildInputs = [
22 Babel
23 ];
24
25 # SyntaxError: Non-ASCII character '\xc3' in file /build/BabelGladeExtractor-0.6.3/babelglade/tests/test_translate.py on line 20, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
26 doCheck = isPy3k;
27
28 meta = with lib; {
29 homepage = "https://github.com/gnome-keysign/babel-glade";
30 description = "Babel Glade XML files translatable strings extractor";
31 license = licenses.bsd3;
32 maintainers = with maintainers; [ jtojnar ];
33 };
34}