python310Packages.pegen: init at 0.2.0

This commit is contained in:
Fabian Affolter
2023-04-23 00:20:35 +02:00
parent 5171e6a356
commit 7d9fe0a835
2 changed files with 48 additions and 0 deletions
@@ -0,0 +1,46 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, setuptools
, setuptools-scm
}:
buildPythonPackage rec {
pname = "pegen";
version = "0.2.0";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "we-like-parsers";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-5nxOMgkDAkHtVFSNXf0SPoag6/E7b97eVnFoAqyJE3g=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptools
setuptools-scm
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"pegen"
];
meta = with lib; {
description = "Library to generate PEG parsers";
homepage = "https://github.com/we-like-parsers/pegen";
changelog = "https://github.com/we-like-parsers/pegen/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
+2
View File
@@ -7191,6 +7191,8 @@ self: super: with self; {
peaqevcore = callPackage ../development/python-modules/peaqevcore { };
pegen = callPackage ../development/python-modules/pegen { };
pebble = callPackage ../development/python-modules/pebble { };
pecan = callPackage ../development/python-modules/pecan { };