Loading pkgs/development/python-modules/liberty-parser/default.nix 0 → 100644 +65 −0 Original line number Diff line number Diff line { lib, buildPythonPackage, fetchFromGitea, setuptools, lark, numpy, sympy, pytestCheckHook, }: buildPythonPackage rec { pname = "liberty-parser"; version = "0.0.25"; pyproject = true; src = fetchFromGitea { domain = "codeberg.org"; owner = "tok"; repo = "liberty-parser"; tag = version; hash = "sha256-Nl+FRG93DeP1ctDphaTKZqkukEywmGprj6JORJQTunw="; }; # Tests try to write to /tmp directly. use $TMPDIR instead. postPatch = '' substituteInPlace src/liberty/parser.py \ --replace-fail "/tmp" "$TMPDIR" ''; build-system = [ setuptools ]; dependencies = [ lark numpy sympy ]; nativeCheckInputs = [ pytestCheckHook ]; enabledTestPaths = [ "src/liberty/*.py" ]; pythonImportsCheck = [ "liberty.parser" ]; meta = { description = "Liberty parser for Python"; homepage = "https://codeberg.org/tok/liberty-parser"; license = with lib.licenses; [ asl20 cc-by-sa-40 cc0 gpl3Plus ]; maintainers = with lib.maintainers; [ eljamm ]; teams = with lib.teams; [ ngi ]; }; } pkgs/top-level/python-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -8123,6 +8123,8 @@ self: super: with self; { libear = callPackage ../development/python-modules/libear { }; liberty-parser = callPackage ../development/python-modules/liberty-parser { }; libevdev = callPackage ../development/python-modules/libevdev { }; libfdt = toPythonModule ( Loading Loading
pkgs/development/python-modules/liberty-parser/default.nix 0 → 100644 +65 −0 Original line number Diff line number Diff line { lib, buildPythonPackage, fetchFromGitea, setuptools, lark, numpy, sympy, pytestCheckHook, }: buildPythonPackage rec { pname = "liberty-parser"; version = "0.0.25"; pyproject = true; src = fetchFromGitea { domain = "codeberg.org"; owner = "tok"; repo = "liberty-parser"; tag = version; hash = "sha256-Nl+FRG93DeP1ctDphaTKZqkukEywmGprj6JORJQTunw="; }; # Tests try to write to /tmp directly. use $TMPDIR instead. postPatch = '' substituteInPlace src/liberty/parser.py \ --replace-fail "/tmp" "$TMPDIR" ''; build-system = [ setuptools ]; dependencies = [ lark numpy sympy ]; nativeCheckInputs = [ pytestCheckHook ]; enabledTestPaths = [ "src/liberty/*.py" ]; pythonImportsCheck = [ "liberty.parser" ]; meta = { description = "Liberty parser for Python"; homepage = "https://codeberg.org/tok/liberty-parser"; license = with lib.licenses; [ asl20 cc-by-sa-40 cc0 gpl3Plus ]; maintainers = with lib.maintainers; [ eljamm ]; teams = with lib.teams; [ ngi ]; }; }
pkgs/top-level/python-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -8123,6 +8123,8 @@ self: super: with self; { libear = callPackage ../development/python-modules/libear { }; liberty-parser = callPackage ../development/python-modules/liberty-parser { }; libevdev = callPackage ../development/python-modules/libevdev { }; libfdt = toPythonModule ( Loading