nixpkgs/pkgs/development/python-modules/sly/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

40 lines
743 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "sly";
version = "0.5";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-JR1CAV6FBxWK7CFk8GA130qCsDFM5kUPRX1xJedkkCQ=";
};
nativeBuildInputs = [ setuptools ];
postPatch = ''
# imperative dev dependency installation
rm Makefile
'';
pythonImportsCheck = [ "sly" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = with lib; {
description = "Improved PLY implementation of lex and yacc for Python 3";
homepage = "https://github.com/dabeaz/sly";
license = licenses.bsd3;
maintainers = [ ];
};
}