nixpkgs/pkgs/development/python-modules/babelgladeextractor/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

35 lines
922 B
Nix

{ lib
, isPy3k
, buildPythonPackage
, fetchPypi
, babel
}:
buildPythonPackage rec {
pname = "babelgladeextractor";
version = "0.7.0";
format = "setuptools";
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; [ ];
};
}