mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
Merge pull request #325963 from eclairevoyant/py-llm-fix
treewide: remove uses of `python3` within the python package set
This commit is contained in:
commit
a8c466e330
@ -17,7 +17,7 @@
|
||||
packaging,
|
||||
pathspec,
|
||||
protobuf,
|
||||
python3,
|
||||
python,
|
||||
pythonOlder,
|
||||
pytz,
|
||||
pyyaml,
|
||||
@ -85,7 +85,7 @@ buildPythonPackage rec {
|
||||
doCheck = false;
|
||||
|
||||
passthru = {
|
||||
withAdapters = python3.pkgs.callPackage ./with-adapters.nix { };
|
||||
withAdapters = python.pkgs.callPackage ./with-adapters.nix { };
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
python3,
|
||||
python,
|
||||
dbt-bigquery,
|
||||
dbt-core,
|
||||
dbt-postgres,
|
||||
@ -17,7 +17,7 @@ let
|
||||
};
|
||||
in
|
||||
adapterFun:
|
||||
(python3.buildEnv.override {
|
||||
(python.buildEnv.override {
|
||||
extraLibs = [ dbt-core ] ++ (adapterFun adapters);
|
||||
ignoreCollisions = true;
|
||||
}).overrideAttrs
|
||||
|
@ -2,7 +2,7 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
python3,
|
||||
python,
|
||||
pythonOlder,
|
||||
django,
|
||||
hatchling,
|
||||
@ -38,7 +38,7 @@ buildPythonPackage {
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
${python3.interpreter} manage.py test testapp
|
||||
${python.interpreter} manage.py test testapp
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
icu,
|
||||
pkg-config,
|
||||
fetchFromGitHub,
|
||||
python3,
|
||||
python,
|
||||
openblas,
|
||||
zlib,
|
||||
gfortran,
|
||||
@ -56,7 +56,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
python3
|
||||
python
|
||||
gfortran
|
||||
];
|
||||
|
||||
|
@ -4,7 +4,6 @@
|
||||
django,
|
||||
fetchFromGitHub,
|
||||
flit-core,
|
||||
python3,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
|
@ -1,6 +1,5 @@
|
||||
{
|
||||
lib,
|
||||
python3,
|
||||
fetchPypi,
|
||||
buildPythonPackage,
|
||||
smbus2,
|
||||
|
@ -5,10 +5,22 @@
|
||||
fetchFromGitHub,
|
||||
makeWrapper,
|
||||
pytestCheckHook,
|
||||
python3,
|
||||
python,
|
||||
pythonOlder,
|
||||
ruff,
|
||||
setuptools,
|
||||
click-default-group,
|
||||
numpy,
|
||||
openai,
|
||||
pip,
|
||||
pluggy,
|
||||
pydantic,
|
||||
python-ulid,
|
||||
pyyaml,
|
||||
sqlite-migrate,
|
||||
cogapp,
|
||||
pytest-httpx,
|
||||
sqlite-utils,
|
||||
}:
|
||||
let
|
||||
llm = buildPythonPackage rec {
|
||||
@ -29,7 +41,7 @@ let
|
||||
|
||||
nativeBuildInputs = [ setuptools ];
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
propagatedBuildInputs = [
|
||||
click-default-group
|
||||
numpy
|
||||
openai
|
||||
@ -43,7 +55,7 @@ let
|
||||
sqlite-utils
|
||||
];
|
||||
|
||||
nativeCheckInputs = with python3.pkgs; [
|
||||
nativeCheckInputs = [
|
||||
cogapp
|
||||
numpy
|
||||
pytest-httpx
|
||||
@ -89,7 +101,7 @@ let
|
||||
|
||||
installPhase = ''
|
||||
makeWrapper ${llm}/bin/llm $out/bin/llm \
|
||||
--prefix PYTHONPATH : "${llm}/${python3.sitePackages}:$PYTHONPATH"
|
||||
--prefix PYTHONPATH : "${llm}/${python.sitePackages}:$PYTHONPATH"
|
||||
ln -sfv ${llm}/lib $out/lib
|
||||
'';
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
fetchFromGitHub,
|
||||
isPyPy,
|
||||
ordered-set,
|
||||
python3,
|
||||
python,
|
||||
setuptools,
|
||||
zstandard,
|
||||
wheel,
|
||||
@ -40,7 +40,7 @@ buildPythonPackage rec {
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
|
||||
${python3.interpreter} tests/basics/run_all.py search
|
||||
${python.interpreter} tests/basics/run_all.py search
|
||||
|
||||
runHook postCheck
|
||||
'';
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
python3,
|
||||
python,
|
||||
fetchPypi,
|
||||
lib,
|
||||
pymeta3,
|
||||
@ -19,7 +19,7 @@ buildPythonPackage rec {
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
${python3.interpreter} tests.py
|
||||
${python.interpreter} tests.py
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
{
|
||||
lib,
|
||||
python3,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
typing-extensions,
|
||||
|
@ -1,11 +1,14 @@
|
||||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
python3,
|
||||
buildPythonPackage,
|
||||
pkg-config,
|
||||
cffi,
|
||||
secp256k1,
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
python3.pkgs.buildPythonPackage {
|
||||
buildPythonPackage {
|
||||
pname = "python-secp256k1-cardano";
|
||||
version = "0.2.3";
|
||||
|
||||
@ -20,20 +23,20 @@ python3.pkgs.buildPythonPackage {
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
propagatedBuildInputs = [
|
||||
cffi
|
||||
secp256k1
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ python3.pkgs.pytestCheckHook ];
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
# Tests expect .so files and are failing
|
||||
doCheck = false;
|
||||
|
||||
preConfigure = ''
|
||||
cp -r ${python3.pkgs.secp256k1.src} libsecp256k1
|
||||
export INCLUDE_DIR=${python3.pkgs.secp256k1}/include
|
||||
export LIB_DIR=${python3.pkgs.secp256k1}/lib
|
||||
cp -r ${secp256k1.src} libsecp256k1
|
||||
export INCLUDE_DIR=${secp256k1}/include
|
||||
export LIB_DIR=${secp256k1}/lib
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
@ -2,7 +2,6 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
python3,
|
||||
|
||||
# nativeCheckInputs
|
||||
hypothesis,
|
||||
|
@ -4,7 +4,7 @@
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
|
||||
python3,
|
||||
python,
|
||||
unittestCheckHook,
|
||||
setuptools,
|
||||
|
||||
@ -45,7 +45,7 @@ buildPythonPackage {
|
||||
|
||||
pythonImportsCheck = [ "ssg" ];
|
||||
|
||||
postInstall = "rm -rf $out/${python3.sitePackages}/scripts";
|
||||
postInstall = "rm -rf $out/${python.sitePackages}/scripts";
|
||||
|
||||
meta = with lib; {
|
||||
description = "TCRF syllable segmenter for Thai";
|
||||
|
@ -10,7 +10,7 @@
|
||||
pyinstaller-versionfile,
|
||||
pytest-order,
|
||||
pytestCheckHook,
|
||||
python3,
|
||||
python,
|
||||
pythonOlder,
|
||||
requests,
|
||||
setuptools,
|
||||
@ -79,7 +79,7 @@ buildPythonPackage rec {
|
||||
cp -r build/lib/tabcmd/__main__.py $out/bin/
|
||||
|
||||
# Create a 'tabcmd' script with python3 shebang
|
||||
echo "#!${python3}/bin/python3" > $out/bin/tabcmd
|
||||
echo "#!${python.interpreter}" > $out/bin/tabcmd
|
||||
|
||||
# Append __main__.py contents
|
||||
cat $out/bin/__main__.py >> $out/bin/tabcmd
|
||||
@ -91,6 +91,7 @@ buildPythonPackage rec {
|
||||
pythonImportsCheck = [ "tabcmd" ];
|
||||
|
||||
meta = with lib; {
|
||||
broken = true;
|
||||
description = "Command line client for working with Tableau Server";
|
||||
homepage = "https://github.com/tableau/tabcmd";
|
||||
changelog = "https://github.com/tableau/tabcmd/releases/tag/v${version}";
|
||||
|
Loading…
Reference in New Issue
Block a user