depot/third_party/nixpkgs/pkgs/development/python-modules/babelfish/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

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 = [ ];
};
}