depot/third_party/nixpkgs/pkgs/development/python-modules/babelgladeextractor/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

34 lines
914 B
Nix

{ stdenv
, lib
, isPy3k
, buildPythonPackage
, fetchPypi
, Babel
}:
buildPythonPackage rec {
pname = "babelgladeextractor";
version = "0.7.0";
disabled = (!isPy3k); # uses python3 specific file io in setup.py
src = fetchPypi {
pname = "BabelGladeExtractor";
inherit version;
extension = "tar.bz2";
sha256 = "160p4wi2ss69g141c2z59azvrhn7ymy5m9h9d65qrcabigi0by5w";
};
propagatedBuildInputs = [
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;
meta = with lib; {
homepage = "https://github.com/gnome-keysign/babel-glade";
description = "Babel Glade XML files translatable strings extractor";
license = licenses.bsd3;
maintainers = with maintainers; [ jtojnar ];
};
}