depot/third_party/nixpkgs/pkgs/development/python-modules/sly/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

39 lines
746 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 = "An improved PLY implementation of lex and yacc for Python 3";
homepage = "https://github.com/dabeaz/sly";
license = licenses.bsd3;
maintainers = [ ];
};
}