From 6870b7f554b4b9dc5713c672006e0ac9751d8622 Mon Sep 17 00:00:00 2001 From: Shrek Requiem Date: Sat, 22 Jun 2024 17:27:31 -0400 Subject: [PATCH] Changed the name --- log | 46 ++++++++++++++++++++++++++++++++++++++++++++++ pyproject.toml | 2 +- shell.nix | 18 ++++++++++++++++++ 3 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 log create mode 100644 shell.nix diff --git a/log b/log new file mode 100644 index 0000000..14f499f --- /dev/null +++ b/log @@ -0,0 +1,46 @@ +Installing dependencies from lock file + +Package operations: 1 install, 0 updates, 0 removals + + - Installing psycopg2 (2.9.9) + + ChefBuildError + + Backend subprocess exited when trying to invoke get_requires_for_build_wheel + + running egg_info + writing psycopg2.egg-info/PKG-INFO + writing dependency_links to psycopg2.egg-info/dependency_links.txt + writing top-level names to psycopg2.egg-info/top_level.txt + + Error: pg_config executable not found. + + pg_config is required to build psycopg2 from source. Please add the directory + containing pg_config to the $PATH or specify the full executable path with the + option: + + python setup.py build_ext --pg-config /path/to/pg_config build ... + + or with the pg_config option in 'setup.cfg'. + + If you prefer to avoid building psycopg2 from source, please install the PyPI + 'psycopg2-binary' package instead. + + For further information please check the 'doc/src/install.rst' file (also at + ). + + + + at /nix/store/g9yj4dz4adzxg80r08rm04jn437cm50q-python3.11-poetry-1.8.2/lib/python3.11/site-packages/poetry/installation/chef.py:164 in _prepare + 160│ + 161│ error = ChefBuildError("\n\n".join(message_parts)) + 162│ + 163│ if error is not None: + → 164│ raise error from None + 165│ + 166│ return path + 167│ + 168│ def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path: + +Note: This error originates from the build backend, and is likely not a problem with poetry but with psycopg2 (2.9.9) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "psycopg2 (==2.9.9)"'. + diff --git a/pyproject.toml b/pyproject.toml index 63148c5..46ff852 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ name = "vetting-bot" version = "0.1.0" description = "" -authors = ["Your Name "] +authors = ["AF2C af2c@protonmail.com"] license = "AGPL-3.0-or-later" readme = "README.md" package-mode = false diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..5ee0680 --- /dev/null +++ b/shell.nix @@ -0,0 +1,18 @@ +# Template +with import { }; + +mkShell { + + nativeBuildInputs = [ + direnv + python312Packages.psycopg2 + python312Packages.aiohttp + poetry + postgresql_16_jit + ]; + + NIX_ENFORCE_PURITY = true; + + shellHook = '' + ''; +}