nixpkgs/pkgs/development/python-modules/betacode/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

27 lines
669 B
Nix

{
fetchPypi,
buildPythonPackage,
pygtrie,
isPy3k,
lib,
}:
buildPythonPackage rec {
pname = "betacode";
version = "1.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "0s84kd9vblbjz61q7zchx64a6hmdqb4lillna5ryh0g9ij76g6r5";
};
preBuild = "echo > README.rst";
# setup.py uses a python3 os.path.join
disabled = !isPy3k;
propagatedBuildInputs = [ pygtrie ];
meta = {
homepage = "https://github.com/matgrioni/betacode";
description = "Small python package to flexibly convert from betacode to unicode and back";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ kmein ];
};
}