2019-02-07 22:57:22 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2022-12-30 19:13:49 +00:00
|
|
|
, setuptools
|
|
|
|
, pytestCheckHook
|
2019-02-07 22:57:22 +00:00
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sly";
|
2022-12-30 19:13:47 +00:00
|
|
|
version = "0.5";
|
2022-12-30 19:13:49 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
2019-02-07 22:57:22 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-12-30 19:13:49 +00:00
|
|
|
hash = "sha256-JR1CAV6FBxWK7CFk8GA130qCsDFM5kUPRX1xJedkkCQ=";
|
2019-02-07 22:57:22 +00:00
|
|
|
};
|
|
|
|
|
2022-12-30 19:13:49 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# imperative dev dependency installation
|
|
|
|
rm Makefile
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"sly"
|
|
|
|
];
|
2019-02-07 22:57:22 +00:00
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2022-12-30 19:13:49 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2019-02-07 22:57:22 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An improved PLY implementation of lex and yacc for Python 3";
|
2020-04-01 23:26:11 +00:00
|
|
|
homepage = "https://github.com/dabeaz/sly";
|
2019-02-07 22:57:22 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|