summaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules/babelgladeextractor/default.nix
blob: 81c9f15f392013963ccbc13afaab61adb758f97a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
  lib,
  isPy3k,
  buildPythonPackage,
  fetchPypi,
  setuptools,
  babel,
}:

buildPythonPackage (finalAttrs: {
  pname = "babelgladeextractor";
  version = "0.7.0";
  pyproject = true;

  __structuredAttrs = true;

  disabled = (!isPy3k); # uses python3 specific file io in setup.py

  src = fetchPypi {
    pname = "BabelGladeExtractor";
    inherit (finalAttrs) version;
    extension = "tar.bz2";
    hash = "sha256-vPgF4otLsYyLaQmmWnz1x8K8v0rlCxZIeMloLSInF5g=";
  };

  build-system = [ setuptools ];

  dependencies = [ babel ];

  # 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
  doCheck = isPy3k;

  pythonImportsCheck = [ "babelglade" ];

  meta = {
    homepage = "https://github.com/gnome-keysign/babel-glade";
    description = "Babel Glade XML files translatable strings extractor";
    license = lib.licenses.bsd3;
    maintainers = [ ];
  };
})