5ca88bfbb9
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
35 lines
703 B
Nix
35 lines
703 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pythonOlder,
|
|
poetry-core,
|
|
importlib-metadata,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "babelfish";
|
|
version = "0.6.1";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-3stnpGYIiNSEgKtpmDCYNxdBWNDxqmO+uxwuEaq5eqs=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = lib.optionals (pythonOlder "3.10") [ importlib-metadata ];
|
|
|
|
# no tests executed
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "babelfish" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/Diaoul/babelfish";
|
|
description = "Module to work with countries and languages";
|
|
license = licenses.bsd3;
|
|
maintainers = [ ];
|
|
};
|
|
}
|