Files
nixpkgs/pkgs/development/python-modules/babelfish/default.nix
Jörg Thalheim 5356420466 treewide: remove unused with statements from maintainer lists
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \
  -e 's!with lib.maintainers; \[ *\];![ ];!' \
  -e 's!with maintainers; \[ *\];![ ];!'
2024-07-29 10:06:20 +08:00

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