Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from NixOS:master #175

Merged
merged 23 commits into from
Dec 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
4df5e82
python311Packages.robotframework-pythonlibcore: 4.2.0 -> 4.3.0
dotlambda Nov 27, 2023
ba0dc5b
python311Packages.example-robot-data: 4.0.8 -> 4.0.9
wegank Dec 3, 2023
550b95e
bup: Fix build on Darwin with LLVM 16
zhaofengli Dec 3, 2023
0ebea89
qt6.qtmultimedia: Enable Spatial Audio (Quick3D)
puetzk Nov 10, 2023
91b8e47
qt6.qtmultimedia: Compile ffmpeg multimedia plugin
puetzk Nov 8, 2023
d3de574
qt6.qtmultimedia: Compile hardware-accelerated VAAPI
puetzk Dec 3, 2023
7e88653
qt6.qtmultimedia: Fix failure to load libva.so
puetzk Dec 3, 2023
8d9ae2d
Merge pull request #270473 from dotlambda/robotframework-pythonlibcor…
dotlambda Dec 4, 2023
0108269
python311Packages.html2image: init at 2.0.4.3
happysalada Dec 1, 2023
5f69f0e
python311Packages.openai: 0.28.1 -> 1.3.7
happysalada Dec 1, 2023
9e71df9
python311Packages.litellm: 0.11.1 -> 1.7.11
happysalada Dec 1, 2023
34deb05
nixos/buildbot: fix worker package
zowoq Dec 3, 2023
e270b7b
php: use a versioned url for install-pear-nozlib.phar
wh0 Dec 4, 2023
3f916c8
starsector: added missing build input
erebfaer Dec 3, 2023
f0b6f1f
Merge pull request #271922 from puetzk/qt6-qtmultimedia-ffmpeg
K900 Dec 4, 2023
515f0d1
python310Packages.mkdocstrings: 0.23.0 -> 0.24.0
r-ryantm Dec 4, 2023
608e8f6
python310Packages.millheater: 0.11.6 -> 0.11.7
r-ryantm Dec 4, 2023
eefffd0
python310Packages.mkdocstrings: refactor
fabaff Dec 4, 2023
da95219
Merge pull request #271972 from wh0/patch-1
drupol Dec 4, 2023
6f3d9c7
Merge pull request #271912 from zhaofengli/bup-llvm16
rnhmjoj Dec 4, 2023
246e745
Merge pull request #271982 from r-ryantm/auto-update/python310Package…
fabaff Dec 4, 2023
3248751
Merge pull request #271983 from r-ryantm/auto-update/python310Package…
fabaff Dec 4, 2023
32766c4
Merge pull request #271903 from wegank/example-robot-data-bump
wegank Dec 4, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions nixos/doc/manual/release-notes/rl-2405.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,5 @@ The pre-existing [services.ankisyncd](#opt-services.ankisyncd.enable) has been m

- The `hardware.pulseaudio` module now sets permission of pulse user home directory to 755 when running in "systemWide" mode. It fixes [issue 114399](https://github.com/NixOS/nixpkgs/issues/114399).

- QtMultimedia has changed its default backend to `QT_MEDIA_BACKEND=ffmpeg` (previously `gstreamer` on Linux or `darwin` on MacOS).
The previous native backends remain available but are now minimally maintained. Refer to [upstream documentation](https://doc.qt.io/qt-6/qtmultimedia-index.html#ffmpeg-as-the-default-backend) for further details about each platform.
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,7 @@ in {
'';
};

package = mkPackageOption pkgs "python3Packages.buildbot-worker" {
example = "python2Packages.buildbot-worker";
};
package = mkPackageOption pkgs "buildbot-worker" { };

packages = mkOption {
default = with pkgs; [ git ];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
}:

fetchurl {
url = "https://pear.php.net/install-pear-nozlib.phar";
url = "https://github.com/pear/pearweb_phars/raw/v1.10.21/install-pear-nozlib.phar";
hash = "sha256-UblKVcsm030tNSA6mdeab+h7ZhANNz7MkFf4Z1iigjs=";
}
6 changes: 3 additions & 3 deletions pkgs/development/libraries/example-robot-data/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@

stdenv.mkDerivation (finalAttrs: {
pname = "example-robot-data";
version = "4.0.8";
version = "4.0.9";

src = fetchFromGitHub {
owner = "Gepetto";
repo = finalAttrs.pname;
repo = "example-robot-data";
rev = "v${finalAttrs.version}";
fetchSubmodules = true;
hash = "sha256-xeNbx1f9QCAOJrXfkk3jo9XH2/4HNtnRA1OSnqA2cLs=";
hash = "sha256-dLW8QaQhTTDcE4QCP9uV4ykOqwc3nbPUmF1B77r8CHQ=";
};

strictDeps = true;
Expand Down
12 changes: 9 additions & 3 deletions pkgs/development/libraries/qt-6/modules/qtmultimedia.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
, stdenv
, qtbase
, qtdeclarative
, qtquick3d
, qtshadertools
, qtsvg
, pkg-config
Expand All @@ -12,8 +13,11 @@
, gst-plugins-good
, gst-libav
, gst-vaapi
, ffmpeg_6
, libva
, libpulseaudio
, wayland
, libXrandr
, elfutils
, libunwind
, orc
Expand All @@ -23,12 +27,14 @@
qtModule {
pname = "qtmultimedia";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libunwind orc ]
++ lib.optionals stdenv.isLinux [ libpulseaudio elfutils alsa-lib wayland ];
propagatedBuildInputs = [ qtbase qtdeclarative qtsvg qtshadertools ]
buildInputs = [ libunwind orc ffmpeg_6 ]
++ lib.optionals stdenv.isLinux [ libpulseaudio elfutils alsa-lib wayland libXrandr libva ];
propagatedBuildInputs = [ qtbase qtdeclarative qtsvg qtshadertools qtquick3d ]
++ lib.optionals stdenv.isLinux [ gstreamer gst-plugins-base gst-plugins-good gst-libav gst-vaapi ]
++ lib.optionals stdenv.isDarwin [ VideoToolbox ];

cmakeFlags = [ "-DENABLE_DYNAMIC_RESOLVE_VAAPI_SYMBOLS=0" ];

env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin
"-include AudioToolbox/AudioToolbox.h";
NIX_LDFLAGS = lib.optionalString stdenv.isDarwin
Expand Down
45 changes: 45 additions & 0 deletions pkgs/development/python-modules/html2image/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, requests
, websocket-client
}:

buildPythonPackage rec {
pname = "html2image";
version = "2.0.4.3";
pyproject = true;

src = fetchFromGitHub {
owner = "vgalin";
repo = "html2image";
rev = version;
hash = "sha256-BDl2Kibp1WOAOYNlXa2aaEgQTitk+OZu72OgytciZYI=";
};

postPatch = ''
substituteInPlace pyproject.toml \
--replace poetry.masonry.api poetry.core.masonry.api \
--replace "poetry>=" "poetry-core>="
'';

nativeBuildInputs = [
poetry-core
];

propagatedBuildInputs = [
requests
websocket-client
];

pythonImportsCheck = [ "html2image" ];

meta = with lib; {
description = "A package acting as a wrapper around the headless mode of existing web browsers to generate images from URLs and from HTML+CSS strings or files";
homepage = "https://github.com/vgalin/html2image";
changelog = "https://github.com/vgalin/html2image/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ happysalada ];
};
}
19 changes: 16 additions & 3 deletions pkgs/development/python-modules/litellm/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,16 @@
, openai
, python-dotenv
, tiktoken
, tokenizers
, click
, jinja2
, certifi
, appdirs
, aiohttp
, httpx
}:
let
version = "0.11.1";
version = "1.7.11";
in
buildPythonPackage rec {
pname = "litellm";
Expand All @@ -19,7 +26,7 @@ buildPythonPackage rec {
owner = "BerriAI";
repo = "litellm";
rev = "refs/tags/v${version}";
hash = "sha256-5Zk1lc7G0dU/AoLE5V+p30wE/gRfYRPsVS3sNgwWzCU=";
hash = "sha256-B2LGaA6A+pU2aDzPS2d5stY+Z8Wxq3BkXB1CLY6vBiY=";
};

postPatch = ''
Expand All @@ -31,10 +38,16 @@ buildPythonPackage rec {
];

propagatedBuildInputs = [
importlib-metadata
openai
python-dotenv
tiktoken
importlib-metadata
tokenizers
click
jinja2
certifi
appdirs
aiohttp
];

# the import check phase fails trying to do a network request to openai
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/millheater/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

buildPythonPackage rec {
pname = "millheater";
version = "0.11.6";
version = "0.11.7";
format = "setuptools";

disabled = pythonOlder "3.10";
Expand All @@ -17,7 +17,7 @@ buildPythonPackage rec {
owner = "Danielhiversen";
repo = "pymill";
rev = "refs/tags/${version}";
hash = "sha256-qd9JuZv1utwL523eiQ79P3hXuVQ8+teTatOJCtI6v00=";
hash = "sha256-jqtyJHoG/8tgv4OJleb7DV6C7pCpgplieLykfvO3cNM=";
};

propagatedBuildInputs = [
Expand Down
20 changes: 12 additions & 8 deletions pkgs/development/python-modules/mkdocstrings/default.nix
Original file line number Diff line number Diff line change
@@ -1,35 +1,36 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, importlib-metadata
, jinja2
, markdown
, markupsafe
, mkdocs
, mkdocs-autorefs
, pdm-backend
, pymdown-extensions
, pytestCheckHook
, pdm-backend
, pythonOlder
, typing-extensions
}:

buildPythonPackage rec {
pname = "mkdocstrings";
version = "0.23.0";
format = "pyproject";
version = "0.24.0";
pyproject = true;

disabled = pythonOlder "3.7";
disabled = pythonOlder "3.8";

src = fetchFromGitHub {
owner = "mkdocstrings";
repo = pname;
repo = "mkdocstrings";
rev = "refs/tags/${version}";
hash = "sha256-t7wxm600XgYl1jsqjOpZdWcmqR9qafdKTaz/xDPdDPY=";
hash = "sha256-UqX2jNNYwDNhb71qGdjHNoo2MmSxjf/bZiUoSxlE2XQ=";
};

postPatch = ''
substituteInPlace pyproject.toml \
--replace 'dynamic = ["version"]' 'version = "${version}"' \
--replace 'license = "ISC"' 'license = {text = "ISC"}'
--replace 'dynamic = ["version"]' 'version = "${version}"'
'';

nativeBuildInputs = [
Expand All @@ -43,6 +44,9 @@ buildPythonPackage rec {
mkdocs
mkdocs-autorefs
pymdown-extensions
] ++ lib.optionals (pythonOlder "3.10") [
importlib-metadata
typing-extensions
];

nativeCheckInputs = [
Expand Down
74 changes: 33 additions & 41 deletions pkgs/development/python-modules/openai/default.nix
Original file line number Diff line number Diff line change
@@ -1,66 +1,63 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, aiohttp
, matplotlib
, pythonOlder
, hatchling
# propagated
, httpx
, pydantic
, typing-extensions
, anyio
, distro
, sniffio
, tqdm
# optional
, numpy
, openpyxl
, pandas
, pandas-stubs
, plotly
# tests
, pytestCheckHook
, pytest-asyncio
, pytest-mock
, pytestCheckHook
, pythonOlder
, requests
, scikit-learn
, tenacity
, tqdm
, typing-extensions
, wandb
, withOptionalDependencies ? false
, respx
, dirty-equals
}:

buildPythonPackage rec {
pname = "openai";
version = "0.28.1";
format = "setuptools";
version = "1.3.7";
pyproject = true;

disabled = pythonOlder "3.7.1";

src = fetchFromGitHub {
owner = "openai";
repo = "openai-python";
rev = "refs/tags/v${version}";
hash = "sha256-liJyeGxnYIC/jUQKdeATHpVJb/12KGbeM94Y2YQphfY=";
hash = "sha256-Pa53s3U5vby1Fq14WMCJnSR6KA3xkVHmBexkNoX/0sk=";
};

nativeBuildInputs = [
hatchling
];

propagatedBuildInputs = [
aiohttp
requests
httpx
pydantic
anyio
distro
sniffio
tqdm
] ++ lib.optionals (pythonOlder "3.8") [
typing-extensions
] ++ lib.optionals withOptionalDependencies (builtins.attrValues {
inherit (passthru.optional-dependencies) embeddings wandb;
});
];

passthru.optional-dependencies = {
datalib = [
numpy
openpyxl
pandas
pandas-stubs
];
embeddings = [
matplotlib
plotly
scikit-learn
tenacity
] ++ passthru.optional-dependencies.datalib;
wandb = [
wandb
] ++ passthru.optional-dependencies.datalib;
};

pythonImportsCheck = [
Expand All @@ -71,21 +68,16 @@ buildPythonPackage rec {
pytestCheckHook
pytest-asyncio
pytest-mock
];

pytestFlagsArray = [
"openai/tests"
respx
dirty-equals
];

OPENAI_API_KEY = "sk-foo";

disabledTestPaths = [
# Requires a real API key
"openai/tests/test_endpoints.py"
"openai/tests/asyncio/test_endpoints.py"
# openai: command not found
"openai/tests/test_file_cli.py"
"openai/tests/test_long_examples_validator.py"
# makes network requests
"tests/test_client.py"
"tests/api_resources"
];

meta = with lib; {
Expand Down
Loading