Merge staging-next into staging
This commit is contained in:
commit
d27cb01f7b
@ -1044,6 +1044,7 @@
|
||||
./services/networking/ntopng.nix
|
||||
./services/networking/ntp/chrony.nix
|
||||
./services/networking/ntp/ntpd.nix
|
||||
./services/networking/ntp/ntpd-rs.nix
|
||||
./services/networking/ntp/openntpd.nix
|
||||
./services/networking/nullidentdmod.nix
|
||||
./services/networking/nylon.nix
|
||||
|
@ -98,7 +98,7 @@ let
|
||||
# anything ever again ("couldn't resolve ..., giving up on
|
||||
# it"), so we silently lose time synchronisation. This also
|
||||
# applies to openntpd.
|
||||
/run/current-system/systemd/bin/systemctl try-reload-or-restart ntpd.service openntpd.service chronyd.service || true
|
||||
/run/current-system/systemd/bin/systemctl try-reload-or-restart ntpd.service openntpd.service chronyd.service ntpd-rs.service || true
|
||||
fi
|
||||
|
||||
${cfg.runHook}
|
||||
|
89
nixos/modules/services/networking/ntp/ntpd-rs.nix
Normal file
89
nixos/modules/services/networking/ntp/ntpd-rs.nix
Normal file
@ -0,0 +1,89 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.services.ntpd-rs;
|
||||
format = pkgs.formats.toml { };
|
||||
configFile = format.generate "ntpd-rs.toml" cfg.settings;
|
||||
in
|
||||
{
|
||||
options.services.ntpd-rs = {
|
||||
enable = lib.mkEnableOption "Network Time Service (ntpd-rs)";
|
||||
metrics.enable = lib.mkEnableOption "ntpd-rs Prometheus Metrics Exporter";
|
||||
|
||||
package = lib.mkPackageOption pkgs "ntpd-rs" { };
|
||||
|
||||
useNetworkingTimeServers = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = true;
|
||||
description = lib.mdDoc ''
|
||||
Use source time servers from {var}`networking.timeServers` in config.
|
||||
'';
|
||||
};
|
||||
|
||||
settings = lib.mkOption {
|
||||
type = lib.types.submodule {
|
||||
freeformType = format.type;
|
||||
};
|
||||
default = { };
|
||||
description = lib.mdDoc ''
|
||||
Settings to write to {file}`ntp.toml`
|
||||
|
||||
See <https://docs.ntpd-rs.pendulum-project.org/man/ntp.toml.5>
|
||||
for more information about available options.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
assertions = [
|
||||
{
|
||||
assertion = !config.services.timesyncd.enable;
|
||||
message = ''
|
||||
`ntpd-rs` is not compatible with `services.timesyncd`. Please disable one of them.
|
||||
'';
|
||||
}
|
||||
];
|
||||
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
systemd.packages = [ cfg.package ];
|
||||
|
||||
services.timesyncd.enable = false;
|
||||
systemd.services.systemd-timedated.environment = {
|
||||
SYSTEMD_TIMEDATED_NTP_SERVICES = "ntpd-rs.service";
|
||||
};
|
||||
|
||||
services.ntpd-rs.settings = {
|
||||
observability = {
|
||||
observation-path = lib.mkDefault "/var/run/ntpd-rs/observe";
|
||||
};
|
||||
source = lib.mkIf cfg.useNetworkingTimeServers (map
|
||||
(ts: {
|
||||
mode = "server";
|
||||
address = ts;
|
||||
})
|
||||
config.networking.timeServers);
|
||||
};
|
||||
|
||||
systemd.services.ntpd-rs = {
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
serviceConfig = {
|
||||
User = "";
|
||||
Group = "";
|
||||
DynamicUser = true;
|
||||
ExecStart = [ "" "${lib.makeBinPath [ cfg.package ]}/ntp-daemon --config=${configFile}" ];
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services.ntp-rs-metrics = lib.mkIf cfg.metrics.enable {
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
serviceConfig = {
|
||||
User = "";
|
||||
Group = "";
|
||||
DynamicUser = true;
|
||||
ExecStart = [ "" "${lib.makeBinPath [ cfg.package ]}/bin/ntp-metrics-exporter --config=${configFile}" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
meta.maintainers = with lib.maintainers; [ fpletz ];
|
||||
}
|
@ -621,6 +621,7 @@ in {
|
||||
nsd = handleTest ./nsd.nix {};
|
||||
ntfy-sh = handleTest ./ntfy-sh.nix {};
|
||||
ntfy-sh-migration = handleTest ./ntfy-sh-migration.nix {};
|
||||
ntpd-rs = handleTest ./ntpd-rs.nix {};
|
||||
nzbget = handleTest ./nzbget.nix {};
|
||||
nzbhydra2 = handleTest ./nzbhydra2.nix {};
|
||||
oh-my-zsh = handleTest ./oh-my-zsh.nix {};
|
||||
|
49
nixos/tests/ntpd-rs.nix
Normal file
49
nixos/tests/ntpd-rs.nix
Normal file
@ -0,0 +1,49 @@
|
||||
import ./make-test-python.nix ({ lib, ... }:
|
||||
{
|
||||
name = "ntpd-rs";
|
||||
|
||||
meta = {
|
||||
maintainers = with lib.maintainers; [ fpletz ];
|
||||
};
|
||||
|
||||
nodes = {
|
||||
client = {
|
||||
services.ntpd-rs = {
|
||||
enable = true;
|
||||
metrics.enable = true;
|
||||
useNetworkingTimeServers = false;
|
||||
settings = {
|
||||
source = [
|
||||
{
|
||||
mode = "server";
|
||||
address = "server";
|
||||
}
|
||||
];
|
||||
synchronization = {
|
||||
minimum-agreeing-sources = 1;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
server = {
|
||||
networking.firewall.allowedUDPPorts = [ 123 ];
|
||||
services.ntpd-rs = {
|
||||
enable = true;
|
||||
metrics.enable = true;
|
||||
settings = {
|
||||
server = [
|
||||
{ listen = "[::]:123"; }
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
testScript = { nodes, ... }: ''
|
||||
start_all()
|
||||
server.wait_for_unit('multi-user.target')
|
||||
client.wait_for_unit('multi-user.target')
|
||||
server.succeed('systemctl is-active ntpd-rs.service')
|
||||
client.succeed('systemctl is-active ntpd-rs.service')
|
||||
'';
|
||||
})
|
@ -10,15 +10,15 @@ let
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "brscan5";
|
||||
version = "1.2.9-0";
|
||||
version = "1.3.0-0";
|
||||
src = {
|
||||
"i686-linux" = fetchurl {
|
||||
url = "https://download.brother.com/welcome/dlf104034/${pname}-${version}.i386.deb";
|
||||
sha256 = "ac23c9a435818955e7882ab06380adf346203ff4e45f384b40e84b8b29642f07";
|
||||
sha256 = "sha256-LpbPUo8iD5CcwUoIOa1UYHQXMrZZJ7PjZpcuyXhXjzk=";
|
||||
};
|
||||
"x86_64-linux" = fetchurl {
|
||||
url = "https://download.brother.com/welcome/dlf104033/${pname}-${version}.amd64.deb";
|
||||
sha256 = "4ec23ff4b457323ae778e871a0f1abcc1848ea105af17850b57f7dcaddcfd96d";
|
||||
sha256 = "sha256-ntVe/e6/cdz3+LSpGilMFZecxfv74pd7ksh85SzEdKc=";
|
||||
};
|
||||
}."${system}" or (throw "Unsupported system: ${system}");
|
||||
|
||||
@ -34,8 +34,8 @@ stdenv.mkDerivation rec {
|
||||
postPatch =
|
||||
let
|
||||
patchOffsetBytes =
|
||||
if system == "x86_64-linux" then 84632
|
||||
else if system == "i686-linux" then 77396
|
||||
if system == "x86_64-linux" then 86528
|
||||
else if system == "i686-linux" then 79140
|
||||
else throw "Unsupported system: ${system}";
|
||||
in
|
||||
''
|
||||
|
@ -1,6 +1,6 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, fetchFromGitea
|
||||
, libxkbcommon
|
||||
, pam
|
||||
, pkg-config
|
||||
@ -14,7 +14,8 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "waylock";
|
||||
version = "0.6.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
src = fetchFromGitea {
|
||||
domain = "codeberg.org";
|
||||
owner = "ifreund";
|
||||
repo = "waylock";
|
||||
rev = "v${finalAttrs.version}";
|
||||
@ -41,7 +42,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
homepage = "https://github.com/ifreund/waylock";
|
||||
description = "A small screenlocker for Wayland compositors";
|
||||
license = lib.licenses.isc;
|
||||
maintainers = with lib.maintainers; [ jordanisaacs ];
|
||||
maintainers = with lib.maintainers; [ adamcstephens jordanisaacs ];
|
||||
mainProgram = "waylock";
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
|
@ -24,7 +24,7 @@ let
|
||||
in
|
||||
python.pkgs.buildPythonApplication rec {
|
||||
pname = "flexget";
|
||||
version = "3.11.2";
|
||||
version = "3.11.8";
|
||||
pyproject = true;
|
||||
|
||||
# Fetch from GitHub in order to use `requirements.in`
|
||||
@ -32,7 +32,7 @@ python.pkgs.buildPythonApplication rec {
|
||||
owner = "Flexget";
|
||||
repo = "Flexget";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-IM3qVn+XAv0EvRYc7ujMU4NPly5IaxF0efHAgI/lyms=";
|
||||
hash = "sha256-kJLcOk1ci4agSoBO7L1JacVq5G2jTjOj1mh7J8S2D+Y=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
@ -60,7 +60,7 @@ python.pkgs.buildPythonApplication rec {
|
||||
loguru
|
||||
more-itertools
|
||||
packaging
|
||||
pendulum
|
||||
pendulum_3
|
||||
psutil
|
||||
pynzb
|
||||
pyrsistent
|
||||
|
@ -8,7 +8,7 @@
|
||||
, alsa-lib
|
||||
, faac
|
||||
, faad2
|
||||
, ffmpeg_5 # Depends on deprecated libav features
|
||||
, ffmpeg
|
||||
, glib
|
||||
, openh264
|
||||
, openssl
|
||||
@ -112,7 +112,7 @@ stdenv.mkDerivation rec {
|
||||
cairo
|
||||
cups
|
||||
faad2
|
||||
ffmpeg_5
|
||||
ffmpeg
|
||||
glib
|
||||
gst-plugins-base
|
||||
gst-plugins-good
|
||||
|
31
pkgs/by-name/ca/catppuccin-qt5ct/package.nix
Normal file
31
pkgs/by-name/ca/catppuccin-qt5ct/package.nix
Normal file
@ -0,0 +1,31 @@
|
||||
{
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
stdenvNoCC.mkDerivation {
|
||||
pname = "catppuccin-qt5ct";
|
||||
version = "2023-03-21";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "catppuccin";
|
||||
repo = "qt5ct";
|
||||
rev = "89ee948e72386b816c7dad72099855fb0d46d41e";
|
||||
hash = "sha256-t/uyK0X7qt6qxrScmkTU2TvcVJH97hSQuF0yyvSO/qQ=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p $out/share/qt5ct
|
||||
cp -r themes $out/share/qt5ct/colors
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Soothing pastel theme for qt5ct";
|
||||
homepage = "https://github.com/catppuccin/qt5ct";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [pluiedev];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
@ -5,16 +5,16 @@
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "csvlens";
|
||||
version = "0.5.1";
|
||||
version = "0.6.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "YS-L";
|
||||
repo = "csvlens";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-9zIi49iXFOARSZsz0iqzC7NfoiBngfNt6A7vZuwxItI=";
|
||||
hash = "sha256-KileDwgVnrbJ6sCv6d4PjnyYqrEmZK6JESYa7+rBneo=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-DDMsycYSzkBNvf4f9WVpnADpP72GQEkmJIJsfrlfMcI=";
|
||||
cargoHash = "sha256-RtnfyhWfctByh8QqOMAu32xKSigP+lCIUIDfzj7kOkE=";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Command line csv viewer";
|
||||
|
1487
pkgs/development/python-modules/clarabel/Cargo.lock
generated
Normal file
1487
pkgs/development/python-modules/clarabel/Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
62
pkgs/development/python-modules/clarabel/default.nix
Normal file
62
pkgs/development/python-modules/clarabel/default.nix
Normal file
@ -0,0 +1,62 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, rustPlatform
|
||||
, libiconv
|
||||
, numpy
|
||||
, scipy
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "clarabel";
|
||||
version = "0.6.0.post1";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "oxfordcontrol";
|
||||
repo = "Clarabel.rs";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-5Mw+3WRMuz3BxLWRdsnXHjetsNrM3EZRZld8lVTNKgo=";
|
||||
};
|
||||
|
||||
cargoDeps = rustPlatform.importCargoLock {
|
||||
lockFile = ./Cargo.lock;
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
ln -s ${./Cargo.lock} ./Cargo.lock
|
||||
'';
|
||||
|
||||
nativeBuildInputs = with rustPlatform; [
|
||||
cargoSetupHook
|
||||
maturinBuildHook
|
||||
];
|
||||
|
||||
buildInputs = lib.optional stdenv.isDarwin libiconv;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
numpy
|
||||
scipy
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"clarabel"
|
||||
];
|
||||
|
||||
# no tests but run the same examples as .github/workflows/pypi.yaml
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
python examples/python/example_sdp.py
|
||||
python examples/python/example_qp.py
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/oxfordcontrol/Clarabel.rs/releases/tag/v${version}/CHANGELOG.md";
|
||||
description = "Conic Interior Point Solver";
|
||||
homepage = "https://github.com/oxfordcontrol/Clarabel.rs";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ a-n-n-a-l-e-e ];
|
||||
};
|
||||
}
|
@ -1,6 +1,7 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, clarabel
|
||||
, cvxopt
|
||||
, ecos
|
||||
, fetchPypi
|
||||
@ -40,6 +41,7 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
clarabel
|
||||
cvxopt
|
||||
ecos
|
||||
numpy
|
||||
|
@ -0,0 +1,64 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, poetry-core
|
||||
, pythonOlder
|
||||
, aiohttp
|
||||
, dataclasses-json
|
||||
, langchain-core
|
||||
, langsmith
|
||||
, numpy
|
||||
, pyyaml
|
||||
, requests
|
||||
, sqlalchemy
|
||||
, tenacity
|
||||
, typer
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "langchain-community";
|
||||
version = "0.0.12";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "langchain_community";
|
||||
inherit version;
|
||||
hash = "sha256-fP42xSsfuGwQldTewM9Gahx1KnRGEE6LOc8PcFEqSFE=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
dataclasses-json
|
||||
langchain-core
|
||||
langsmith
|
||||
numpy
|
||||
pyyaml
|
||||
requests
|
||||
sqlalchemy
|
||||
tenacity
|
||||
];
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
cli = [
|
||||
typer
|
||||
];
|
||||
};
|
||||
|
||||
pythonImportsCheck = [ "langchain_community" ];
|
||||
|
||||
# PyPI source does not have tests
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Community contributed LangChain integrations";
|
||||
homepage = "https://github.com/langchain-ai/langchain/tree/master/libs/community";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ natsukium ];
|
||||
};
|
||||
}
|
55
pkgs/development/python-modules/langchain-core/default.nix
Normal file
55
pkgs/development/python-modules/langchain-core/default.nix
Normal file
@ -0,0 +1,55 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
, poetry-core
|
||||
, anyio
|
||||
, jsonpatch
|
||||
, langsmith
|
||||
, packaging
|
||||
, pydantic
|
||||
, pyyaml
|
||||
, requests
|
||||
, tenacity
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "langchain-core";
|
||||
version = "0.1.10";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "langchain_core";
|
||||
inherit version;
|
||||
hash = "sha256-PJ4TgyZMEC/Mb4ZXANu5QWxJMaJdCsIZX2MRxrhnqhc=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
anyio
|
||||
jsonpatch
|
||||
langsmith
|
||||
packaging
|
||||
pydantic
|
||||
pyyaml
|
||||
requests
|
||||
tenacity
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "langchain_core" ];
|
||||
|
||||
# PyPI source does not have tests
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Building applications with LLMs through composability";
|
||||
homepage = "https://github.com/langchain-ai/langchain/tree/master/libs/core";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ natsukium ];
|
||||
};
|
||||
}
|
@ -6,11 +6,12 @@
|
||||
, pythonRelaxDepsHook
|
||||
, poetry-core
|
||||
, aiohttp
|
||||
, anyio
|
||||
, async-timeout
|
||||
, dataclasses-json
|
||||
, jsonpatch
|
||||
, langsmith
|
||||
, langchain-core
|
||||
, langchain-community
|
||||
, numpy
|
||||
, pydantic
|
||||
, pyyaml
|
||||
@ -18,60 +19,27 @@
|
||||
, sqlalchemy
|
||||
, tenacity
|
||||
# optional dependencies
|
||||
, atlassian-python-api
|
||||
, azure-core
|
||||
, azure-cosmos
|
||||
, azure-identity
|
||||
, beautifulsoup4
|
||||
, chardet
|
||||
, clarifai
|
||||
, cohere
|
||||
, duckduckgo-search
|
||||
, elasticsearch
|
||||
, esprima
|
||||
, faiss
|
||||
, google-api-python-client
|
||||
, google-auth
|
||||
, google-search-results
|
||||
, gptcache
|
||||
, html2text
|
||||
, huggingface-hub
|
||||
, jinja2
|
||||
, jq
|
||||
, lark
|
||||
, librosa
|
||||
, lxml
|
||||
, manifest-ml
|
||||
, neo4j
|
||||
, networkx
|
||||
, nlpcloud
|
||||
, nltk
|
||||
, openai
|
||||
, opensearch-py
|
||||
, pdfminer-six
|
||||
, pgvector
|
||||
, pinecone-client
|
||||
, psycopg2
|
||||
, pymongo
|
||||
, pyowm
|
||||
, pypdf
|
||||
, pytesseract
|
||||
, python-arango
|
||||
, qdrant-client
|
||||
, rdflib
|
||||
, redis
|
||||
, requests-toolbelt
|
||||
, sentence-transformers
|
||||
, tiktoken
|
||||
, torch
|
||||
, transformers
|
||||
, typer
|
||||
, weaviate-client
|
||||
, wikipedia
|
||||
# test dependencies
|
||||
, freezegun
|
||||
, pandas
|
||||
, pexpect
|
||||
, pytest-asyncio
|
||||
, pytest-mock
|
||||
, pytest-socket
|
||||
@ -84,16 +52,16 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "langchain";
|
||||
version = "0.0.344";
|
||||
version = "0.1.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "hwchase17";
|
||||
owner = "langchain-ai";
|
||||
repo = "langchain";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-pvoY2QuGTZhqeCi9oLOH1XrxfT4FMfHwNkIGIaYTEo8=";
|
||||
hash = "sha256-izaSah1S0INsskdzE9b7Iw4yWBsNmN5fBI6BQgaHgE4=";
|
||||
};
|
||||
|
||||
sourceRoot = "${src.name}/libs/langchain";
|
||||
@ -108,17 +76,18 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
langchain-core
|
||||
langchain-community
|
||||
pydantic
|
||||
sqlalchemy
|
||||
requests
|
||||
pyyaml
|
||||
numpy
|
||||
dataclasses-json
|
||||
tenacity
|
||||
aiohttp
|
||||
langsmith
|
||||
anyio
|
||||
tenacity
|
||||
jsonpatch
|
||||
dataclasses-json
|
||||
langsmith
|
||||
] ++ lib.optionals (pythonOlder "3.11") [
|
||||
async-timeout
|
||||
];
|
||||
@ -169,81 +138,9 @@ buildPythonPackage rec {
|
||||
# azure-ai-vision
|
||||
# azure-cognitiveservices-speech
|
||||
# azure-search-documents
|
||||
# azure-ai-textanalytics
|
||||
];
|
||||
all = [
|
||||
clarifai
|
||||
cohere
|
||||
openai
|
||||
nlpcloud
|
||||
huggingface-hub
|
||||
manifest-ml
|
||||
elasticsearch
|
||||
opensearch-py
|
||||
google-search-results
|
||||
faiss
|
||||
sentence-transformers
|
||||
transformers
|
||||
nltk
|
||||
wikipedia
|
||||
beautifulsoup4
|
||||
tiktoken
|
||||
torch
|
||||
jinja2
|
||||
pinecone-client
|
||||
# pinecone-text
|
||||
# marqo
|
||||
pymongo
|
||||
weaviate-client
|
||||
redis
|
||||
google-api-python-client
|
||||
google-auth
|
||||
# wolframalpha
|
||||
qdrant-client
|
||||
# tensorflow-text
|
||||
pypdf
|
||||
networkx
|
||||
# nomic
|
||||
# aleph-alpha-client
|
||||
# deeplake
|
||||
# libdeeplake
|
||||
pgvector
|
||||
psycopg2
|
||||
pyowm
|
||||
pytesseract
|
||||
html2text
|
||||
atlassian-python-api
|
||||
gptcache
|
||||
duckduckgo-search
|
||||
# arxiv
|
||||
azure-identity
|
||||
# clickhouse-connect
|
||||
azure-cosmos
|
||||
# lancedb
|
||||
# langkit
|
||||
lark
|
||||
pexpect
|
||||
# pyvespa
|
||||
# O365
|
||||
jq
|
||||
# docarray
|
||||
pdfminer-six
|
||||
lxml
|
||||
requests-toolbelt
|
||||
neo4j
|
||||
# openlm
|
||||
# azure-ai-formrecognizer
|
||||
# azure-ai-vision
|
||||
# azure-cognitiveservices-speech
|
||||
# momento
|
||||
# singlestoredb
|
||||
# tigrisdb
|
||||
# nebula3-python
|
||||
# awadb
|
||||
esprima
|
||||
rdflib
|
||||
# amadeus
|
||||
librosa
|
||||
python-arango
|
||||
];
|
||||
cli = [
|
||||
typer
|
||||
@ -277,6 +174,9 @@ buildPythonPackage rec {
|
||||
|
||||
# these tests have network access
|
||||
"test_socket_disabled"
|
||||
|
||||
# this test may require a specific version of langchain-community
|
||||
"test_compatible_vectorstore_documentation"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
@ -285,8 +185,8 @@ buildPythonPackage rec {
|
||||
|
||||
meta = with lib; {
|
||||
description = "Building applications with LLMs through composability";
|
||||
homepage = "https://github.com/hwchase17/langchain";
|
||||
changelog = "https://github.com/hwchase17/langchain/releases/tag/v${version}";
|
||||
homepage = "https://github.com/langchain-ai/langchain";
|
||||
changelog = "https://github.com/langchain-ai/langchain/releases/tag/v${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ natsukium ];
|
||||
};
|
||||
|
@ -12,8 +12,8 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "langsmith";
|
||||
version = "0.0.75";
|
||||
format = "pyproject";
|
||||
version = "0.0.80";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
@ -21,7 +21,7 @@ buildPythonPackage rec {
|
||||
owner = "langchain-ai";
|
||||
repo = "langsmith-sdk";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-BbDB3xP3OCRXxbOqFIzFNrpK5+wHbIZ/VlurNXrXpTw=";
|
||||
hash = "sha256-YFXwM/YiQJzJ1Nf76kuq3WtFhU6dUIHzK4K33+VO/lQ=";
|
||||
};
|
||||
|
||||
sourceRoot = "${src.name}/python";
|
||||
@ -49,6 +49,8 @@ buildPythonPackage rec {
|
||||
"test_as_runnable_batch"
|
||||
"test_as_runnable_async"
|
||||
"test_as_runnable_async_batch"
|
||||
# requires git repo
|
||||
"test_git_info"
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
|
@ -45,6 +45,10 @@ buildPythonPackage rec {
|
||||
hash = "sha256-KhLSKlQ4xfSh1nsAt+cRO+adh2aj/h/iqV6YmDbz39k=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed -i '/tag_build = dev/d' setup.cfg
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
@ -25,6 +25,10 @@ let
|
||||
, nukeReferences, patchelf, llvmPackages
|
||||
, makeRustPlatform, buildPgxExtension, cargo, rustc
|
||||
|
||||
# PL/Python
|
||||
, pythonSupport ? false
|
||||
, python3
|
||||
|
||||
# detection of crypt fails when using llvm stdenv, so we add it manually
|
||||
# for <13 (where it got removed: https://github.com/postgres/postgres/commit/c45643d618e35ec2fe91438df15abd4f3c0d85ca)
|
||||
, libxcrypt
|
||||
@ -63,6 +67,7 @@ let
|
||||
++ lib.optionals lz4Enabled [ lz4 ]
|
||||
++ lib.optionals zstdEnabled [ zstd ]
|
||||
++ lib.optionals enableSystemd [ systemd ]
|
||||
++ lib.optionals pythonSupport [ python3 ]
|
||||
++ lib.optionals gssSupport [ libkrb5 ]
|
||||
++ lib.optionals stdenv'.isLinux [ linux-pam ]
|
||||
++ lib.optionals (!stdenv'.isDarwin) [ libossp_uuid ];
|
||||
@ -97,6 +102,7 @@ let
|
||||
] ++ lib.optionals lz4Enabled [ "--with-lz4" ]
|
||||
++ lib.optionals zstdEnabled [ "--with-zstd" ]
|
||||
++ lib.optionals gssSupport [ "--with-gssapi" ]
|
||||
++ lib.optionals pythonSupport [ "--with-python" ]
|
||||
++ lib.optionals stdenv'.hostPlatform.isRiscV [ "--disable-spinlocks" ]
|
||||
++ lib.optionals jitSupport [ "--with-llvm" ]
|
||||
++ lib.optionals stdenv'.isLinux [ "--with-pam" ];
|
||||
|
@ -1,39 +1,51 @@
|
||||
{ lib
|
||||
, rustPlatform
|
||||
, fetchFromGitHub
|
||||
, installShellFiles
|
||||
, pandoc
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "ntpd-rs";
|
||||
version = "0.3.7";
|
||||
version = "1.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pendulum-project";
|
||||
repo = "ntpd-rs";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-AUCzsveG9U+KxYO/4LGmyCPkR+w9pGDA/vTzMAGiVuI=";
|
||||
hash = "sha256-IoTuI0M+stZNUVpaVsf7JR7uHcamSSVDMJxJ+7n5ayA=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-6FUVkr3uock43ZBHuMEVIZ5F8Oh8wMifh2EokMWv4hU=";
|
||||
cargoHash = "sha256-iZuDNFy8c2UZUh3J11lEtfHlDFN+qPl4iZg+ps7AenE=";
|
||||
|
||||
nativeBuildInputs = [ pandoc installShellFiles ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace utils/generate-man.sh \
|
||||
--replace 'utils/pandoc.sh' 'pandoc'
|
||||
'';
|
||||
|
||||
postBuild = ''
|
||||
source utils/generate-man.sh
|
||||
'';
|
||||
|
||||
doCheck = true;
|
||||
|
||||
checkFlags = [
|
||||
# doesn't find the testca
|
||||
"--skip=keyexchange::tests::key_exchange_roundtrip"
|
||||
# seems flaky
|
||||
# seems flaky?
|
||||
"--skip=algorithm::kalman::peer::tests::test_offset_steering_and_measurements"
|
||||
# needs networking
|
||||
"--skip=hwtimestamp::tests::get_hwtimestamp"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
install -vDt $out/lib/systemd/system pkg/common/ntpd-rs.service
|
||||
|
||||
for testprog in demobilize-server rate-limit-server nts-ke nts-ke-server peer-state simple-daemon; do
|
||||
moveToOutput bin/$testprog "$tests"
|
||||
done
|
||||
install -Dm444 -t $out/lib/systemd/system docs/examples/conf/{ntpd-rs,ntpd-rs-metrics}.service
|
||||
installManPage docs/precompiled/man/{ntp.toml.5,ntp-ctl.8,ntp-daemon.8,ntp-metrics-exporter.8}
|
||||
'';
|
||||
|
||||
outputs = [ "out" "tests" ];
|
||||
outputs = [ "out" "man" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A full-featured implementation of the Network Time Protocol";
|
||||
|
@ -1,8 +1,8 @@
|
||||
{ python3, fetchFromGitHub }:
|
||||
{ lib, python3, fetchFromGitHub }:
|
||||
|
||||
let
|
||||
python = python3.override {
|
||||
packageOverrides = self: super: rec {
|
||||
newPackageOverrides =
|
||||
self: super: {
|
||||
poetry = self.callPackage ./unwrapped.nix { };
|
||||
|
||||
# The versions of Poetry and poetry-core need to match exactly,
|
||||
@ -21,7 +21,10 @@ let
|
||||
};
|
||||
});
|
||||
} // (plugins self);
|
||||
};
|
||||
python = python3.override (old: {
|
||||
packageOverrides = lib.composeManyExtensions
|
||||
((if old ? packageOverrides then [ old.packageOverrides ] else [ ]) ++ [ newPackageOverrides ]);
|
||||
});
|
||||
|
||||
plugins = ps: with ps; {
|
||||
poetry-audit-plugin = callPackage ./plugins/poetry-audit-plugin.nix { };
|
||||
|
@ -1041,7 +1041,7 @@ with pkgs;
|
||||
|
||||
fetchpijul = callPackage ../build-support/fetchpijul { };
|
||||
|
||||
inherit (callPackage ../build-support/node/fetch-yarn-deps { })
|
||||
inherit (callPackages ../build-support/node/fetch-yarn-deps { })
|
||||
prefetch-yarn-deps
|
||||
fetchYarnDeps;
|
||||
|
||||
@ -1919,7 +1919,7 @@ with pkgs;
|
||||
|
||||
immich-cli = callPackage ../tools/misc/immich-cli { };
|
||||
|
||||
inherit (callPackage ../tools/networking/ivpn/default.nix {}) ivpn ivpn-service;
|
||||
inherit (callPackages ../tools/networking/ivpn/default.nix {}) ivpn ivpn-service;
|
||||
|
||||
jobber = callPackage ../tools/system/jobber { };
|
||||
|
||||
@ -4406,7 +4406,7 @@ with pkgs;
|
||||
buttercup-desktop = callPackage ../tools/security/buttercup-desktop { };
|
||||
|
||||
charles = charles4;
|
||||
inherit (callPackage ../applications/networking/charles {})
|
||||
inherit (callPackages ../applications/networking/charles {})
|
||||
charles3
|
||||
charles4
|
||||
;
|
||||
@ -4759,7 +4759,7 @@ with pkgs;
|
||||
|
||||
copyright-update = callPackage ../tools/text/copyright-update { };
|
||||
|
||||
inherit (callPackage ../tools/misc/coreboot-utils { })
|
||||
inherit (callPackages ../tools/misc/coreboot-utils { })
|
||||
msrtool
|
||||
cbmem
|
||||
ifdtool
|
||||
@ -6878,7 +6878,7 @@ with pkgs;
|
||||
|
||||
cirrusgo = callPackage ../tools/security/cirrusgo { };
|
||||
|
||||
inherit (callPackage ../applications/networking/remote/citrix-workspace { })
|
||||
inherit (callPackages ../applications/networking/remote/citrix-workspace { })
|
||||
citrix_workspace_23_02_0
|
||||
citrix_workspace_23_07_0
|
||||
citrix_workspace_23_09_0
|
||||
@ -8470,7 +8470,7 @@ with pkgs;
|
||||
|
||||
gaphor = python3Packages.callPackage ../tools/misc/gaphor { };
|
||||
|
||||
inherit (callPackage ../tools/filesystems/garage {
|
||||
inherit (callPackages ../tools/filesystems/garage {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
})
|
||||
garage
|
||||
@ -11137,7 +11137,7 @@ with pkgs;
|
||||
|
||||
netbootxyz-efi = callPackage ../tools/misc/netbootxyz-efi { };
|
||||
|
||||
inherit (callPackage ../servers/web-apps/netbox { })
|
||||
inherit (callPackages ../servers/web-apps/netbox { })
|
||||
netbox netbox_3_5 netbox_3_6;
|
||||
|
||||
netbox2netshot = callPackage ../tools/admin/netbox2netshot { };
|
||||
@ -11200,7 +11200,7 @@ with pkgs;
|
||||
|
||||
grocy = callPackage ../servers/grocy { };
|
||||
|
||||
inherit (callPackage ../servers/nextcloud {})
|
||||
inherit (callPackages ../servers/nextcloud {})
|
||||
nextcloud26 nextcloud27 nextcloud28;
|
||||
|
||||
nextcloud26Packages = callPackage ../servers/nextcloud/packages {
|
||||
@ -11233,7 +11233,7 @@ with pkgs;
|
||||
|
||||
noip = callPackage ../tools/networking/noip { };
|
||||
|
||||
inherit (callPackage ../applications/networking/cluster/nomad { })
|
||||
inherit (callPackages ../applications/networking/cluster/nomad { })
|
||||
nomad
|
||||
nomad_1_4
|
||||
nomad_1_5
|
||||
@ -12143,7 +12143,7 @@ with pkgs;
|
||||
|
||||
plujain-ramp = callPackage ../applications/audio/plujain-ramp { };
|
||||
|
||||
inherit (callPackage ../servers/plik { })
|
||||
inherit (callPackages ../servers/plik { })
|
||||
plik plikd;
|
||||
|
||||
plex = callPackage ../servers/plex { };
|
||||
|
@ -2081,6 +2081,8 @@ self: super: with self; {
|
||||
|
||||
ckcc-protocol = callPackage ../development/python-modules/ckcc-protocol { };
|
||||
|
||||
clarabel = callPackage ../development/python-modules/clarabel { };
|
||||
|
||||
clarifai = callPackage ../development/python-modules/clarifai { };
|
||||
|
||||
clarifai-grpc = callPackage ../development/python-modules/clarifai-grpc { };
|
||||
@ -6184,6 +6186,10 @@ self: super: with self; {
|
||||
|
||||
langchain = callPackage ../development/python-modules/langchain { };
|
||||
|
||||
langchain-community = callPackage ../development/python-modules/langchain-community { };
|
||||
|
||||
langchain-core = callPackage ../development/python-modules/langchain-core { };
|
||||
|
||||
langcodes = callPackage ../development/python-modules/langcodes { };
|
||||
|
||||
langdetect = callPackage ../development/python-modules/langdetect { };
|
||||
|
Loading…
Reference in New Issue
Block a user