depot/third_party/nixpkgs/pkgs/development/python-modules/sly/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

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