Merge staging-next into staging

This commit is contained in:
github-actions[bot] 2023-07-27 12:01:56 +00:00 committed by GitHub
commit 433ca82232
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
55 changed files with 815 additions and 162 deletions

View File

@ -639,7 +639,7 @@ let
unmatchedDefns = [];
}
else if optionDecls != [] then
if all (x: x.options.type.name == "submodule") optionDecls
if all (x: x.options.type.name or null == "submodule") optionDecls
# Raw options can only be merged into submodules. Merging into
# attrsets might be nice, but ambiguous. Suppose we have
# attrset as a `attrsOf submodule`. User declares option

View File

@ -271,8 +271,57 @@ in /* No rec! Add dependencies on this file at the top. */ {
second argument: "${toString path2}" with root "${toString path2Deconstructed.root}"'';
joinRelPath components;
/*
Split the filesystem root from a [path](https://nixos.org/manual/nix/stable/language/values.html#type-path).
The result is an attribute set with these attributes:
- `root`: The filesystem root of the path, meaning that this directory has no parent directory.
- `subpath`: The [normalised subpath string](#function-library-lib.path.subpath.normalise) that when [appended](#function-library-lib.path.append) to `root` returns the original path.
Laws:
- [Appending](#function-library-lib.path.append) the `root` and `subpath` gives the original path:
p ==
append
(splitRoot p).root
(splitRoot p).subpath
- Trying to get the parent directory of `root` using [`readDir`](https://nixos.org/manual/nix/stable/language/builtins.html#builtins-readDir) returns `root` itself:
dirOf (splitRoot p).root == (splitRoot p).root
Type:
splitRoot :: Path -> { root :: Path, subpath :: String }
Example:
splitRoot /foo/bar
=> { root = /.; subpath = "./foo/bar"; }
splitRoot /.
=> { root = /.; subpath = "./."; }
# Nix neutralises `..` path components for all path values automatically
splitRoot /foo/../bar
=> { root = /.; subpath = "./bar"; }
splitRoot "/foo/bar"
=> <error>
*/
splitRoot = path:
assert assertMsg
(isPath path)
"lib.path.splitRoot: Argument is of type ${typeOf path}, but a path was expected";
let
deconstructed = deconstructPath path;
in {
root = deconstructed.root;
subpath = joinRelPath deconstructed.components;
};
/* Whether a value is a valid subpath string.
A subpath string points to a specific file or directory within an absolute base directory.
It is a stricter form of a relative path that excludes `..` components, since those could escape the base directory.
- The value is a string
- The string is not empty

View File

@ -3,7 +3,7 @@
{ libpath }:
let
lib = import libpath;
inherit (lib.path) hasPrefix removePrefix append subpath;
inherit (lib.path) hasPrefix removePrefix append splitRoot subpath;
cases = lib.runTests {
# Test examples from the lib.path.append documentation
@ -74,6 +74,23 @@ let
expected = "./foo";
};
testSplitRootExample1 = {
expr = splitRoot /foo/bar;
expected = { root = /.; subpath = "./foo/bar"; };
};
testSplitRootExample2 = {
expr = splitRoot /.;
expected = { root = /.; subpath = "./."; };
};
testSplitRootExample3 = {
expr = splitRoot /foo/../bar;
expected = { root = /.; subpath = "./bar"; };
};
testSplitRootExample4 = {
expr = (builtins.tryEval (splitRoot "/foo/bar")).success;
expected = false;
};
# Test examples from the lib.path.subpath.isValid documentation
testSubpathIsValidExample1 = {
expr = subpath.isValid null;

View File

@ -371,6 +371,9 @@ checkConfigError \
config.set \
./declare-set.nix ./declare-enable-nested.nix
# Check that that merging of option collisions doesn't depend on type being set
checkConfigError 'The option .group..*would be a parent of the following options, but its type .<no description>. does not support nested options.\n\s*- option.s. with prefix .group.enable..*' config.group.enable ./merge-typeless-option.nix
# Test that types.optionType merges types correctly
checkConfigOutput '^10$' config.theOption.int ./optionTypeMerging.nix
checkConfigOutput '^"hello"$' config.theOption.str ./optionTypeMerging.nix

View File

@ -0,0 +1,25 @@
{ lib, ... }:
let
typeless =
{ lib, ... }:
{
options.group = lib.mkOption { };
};
childOfTypeless =
{ lib, ... }:
{
options.group.enable = lib.mkEnableOption "nothing";
};
in
{
imports = [
typeless
childOfTypeless
];
config.group.enable = false;
}

View File

@ -17552,6 +17552,12 @@
fingerprint = "AEF2 3487 66F3 71C6 89A7 3600 95A4 2FE8 3535 25F9";
}];
};
vinetos = {
name = "vinetos";
email = "vinetosdev@gmail.com";
github = "vinetos";
githubId = 10145351;
};
vinnymeller = {
email = "vinnymeller@proton.me";
github = "vinnymeller";

View File

@ -199,6 +199,7 @@ in
gnome.adwaita-icon-theme
gtk3.out # for gtk-launch program
onboard
orca # elementary/greeter#668
qgnomeplatform
sound-theme-freedesktop
xdg-user-dirs # Update user dirs as described in http://freedesktop.org/wiki/Software/xdg-user-dirs/

View File

@ -42,7 +42,7 @@ rec {
dontInstall = true;
buildPhase = ''
convert ./libgui/src/icons/logo.png -resize ${size}x${size} $out
convert ./libgui/src/icons/octave/128x128/logo.png -resize ${size}x${size} $out
'';
};

View File

@ -18,11 +18,11 @@ buildPythonPackage rec {
# There appears to be a similar problem with metakernel's tests
doCheck = false;
meta = with lib; {
meta = {
description = "A Jupyter kernel for Octave.";
homepage = "https://github.com/Calysto/octave_kernel";
license = licenses.bsd3;
maintainers = with maintainers; [ thomasjm ];
platforms = platforms.all;
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ thomasjm ];
platforms = lib.platforms.all;
};
}

View File

@ -0,0 +1,42 @@
{ stdenv
, lib
, fetchFromGitHub
, crystal
, vte
, libgit2
, editorconfig-core-c
, gtksourceview4
, wrapGAppsHook
, desktopToDarwinBundle
}:
crystal.buildCrystalPackage rec {
pname = "tijolo";
version = "0.7.3";
src = fetchFromGitHub {
owner = "hugopl";
repo = "tijolo";
rev = "v${version}";
hash = "sha256-15not/B+O+wIZ/fvLFy26/dyvq0E+bZUeoSZ6HxMMKg=";
};
nativeBuildInputs = [ wrapGAppsHook ]
++ lib.optionals stdenv.isDarwin [ desktopToDarwinBundle ];
buildInputs = [ vte libgit2 gtksourceview4 editorconfig-core-c ];
buildTargets = [ "all" ];
doCheck = false;
shardsFile = ./tijolo-shards.nix;
installTargets = [ "install" "install-fonts"];
doInstallCheck = false;
meta = with lib; {
description = "Lightweight, keyboard-oriented IDE for the masses";
homepage = "https://github.com/hugopl/tijolo";
license = licenses.mit;
mainProgram = "tijolo";
maintainers = with maintainers; [ sund3RRR ];
};
}

View File

@ -0,0 +1,27 @@
{
compiled_license = {
url = "https://github.com/elorest/compiled_license.git";
rev = "v1.2.2";
sha256 = "1f412r6m31cc093lcw31m2rp5s3y7vh6q3wc3xh9b8vccvmj21p7";
};
fzy = {
url = "https://github.com/hugopl/fzy.git";
rev = "v0.5.5";
sha256 = "1zk95m43ymx9ilwr6iw9l44nkmp4sas28ib0dkr07hkhgrkw68sv";
};
gobject = {
url = "https://github.com/jhass/crystal-gobject.git";
rev = "v0.10.0";
sha256 = "02cc3486ifbffdbvgl75ylwn47gpfb2j0srz92jx5yz1d596x746";
};
toml = {
url = "https://github.com/crystal-community/toml.cr.git";
rev = "v0.7.0";
sha256 = "0vznx2irvx6m8w6chdf9ms72n2w0cf2m5cwh0cjmp1jz9y3xwv7z";
};
version_from_shard = {
url = "https://github.com/hugopl/version_from_shard.git";
rev = "v1.2.5";
sha256 = "0xizj0q4rd541rwjbx04cjifc2gfx4l5v6q2y7gmd0ndjmkgb8ik";
};
}

View File

@ -360,6 +360,17 @@ in
};
};
dosbox-pure = mkLibretroCore {
core = "dosbox-pure";
CXXFLAGS = "-std=gnu++11";
hardeningDisable = [ "format" ];
makefile = "Makefile";
meta = {
description = "Port of DOSBox to libretro aiming for simplicity and ease of use.";
license = lib.licenses.gpl2Only;
};
};
eightyone = mkLibretroCore {
core = "81";
src = getCoreSrc "eightyone";

View File

@ -1,9 +1,9 @@
{
"2048": {
"owner": "libretro",
"repo": "libretro-2048",
"rev": "331c1de588ed8f8c370dcbc488e5434a3c09f0f2",
"hash": "sha256-gPrAmoBnfuTnW6t699pqS43vE6t0ca3jZcqTNRaJipA="
"owner": "libretro",
"repo": "libretro-2048",
"rev": "331c1de588ed8f8c370dcbc488e5434a3c09f0f2",
"hash": "sha256-gPrAmoBnfuTnW6t699pqS43vE6t0ca3jZcqTNRaJipA="
},
"atari800": {
"owner": "libretro",
@ -144,6 +144,12 @@
"rev": "b7b24262c282c0caef2368c87323ff8c381b3102",
"hash": "sha256-PG2eElenlEpu0U/NIh53p0uLqewnEdaq6Aoak5E1P3I="
},
"dosbox-pure": {
"owner": "schellingb",
"repo": "dosbox-pure",
"rev": "035e01e43623f83a9e71f362364fd74091379455",
"hash": "sha256-j7Or4yTK5l+ZVC5UFeym9sLx+88PRlofoBT1tMuf31A="
},
"eightyone": {
"owner": "libretro",
"repo": "81-libretro",

View File

@ -36,6 +36,7 @@ CORES = {
"desmume2015": {"repo": "desmume2015"},
"dolphin": {"repo": "dolphin"},
"dosbox": {"repo": "dosbox-libretro"},
"dosbox-pure": {"repo": "dosbox-pure", "owner": "schellingb"},
"eightyone": {"repo": "81-libretro"},
"fbalpha2012": {"repo": "fbalpha2012"},
"fbneo": {"repo": "fbneo"},

View File

@ -66,9 +66,7 @@ python3.pkgs.buildPythonApplication rec {
'';
passthru = {
updateScript = nix-update-script {
attrPath = "portfolio-filemanager";
};
updateScript = nix-update-script { };
};
meta = with lib; {

View File

@ -80,9 +80,7 @@ python3.pkgs.buildPythonApplication rec {
'';
passthru = {
updateScript = nix-update-script {
attrPath = "komikku";
};
updateScript = nix-update-script { };
};
meta = with lib; {

View File

@ -69,9 +69,7 @@ python3.pkgs.buildPythonApplication rec {
# handle setup hooks better
strictDeps = false;
passthru.updateScript = nix-update-script {
attrPath = pname;
};
passthru.updateScript = nix-update-script { };
meta = with lib; {
homepage = "https://github.com/dialect-app/dialect";

View File

@ -67,7 +67,6 @@ mkDerivation rec {
passthru = {
updateScript = nix-update-script {
attrPath = pname;
extraArgs = [ "-vr" "(.*)-android" ];
};
};

View File

@ -66,9 +66,7 @@ stdenv.mkDerivation rec {
]);
passthru = {
updateScript = nix-update-script {
attrPath = "tuba";
};
updateScript = nix-update-script { };
};
meta = with lib; {

View File

@ -4,7 +4,6 @@
, cmake
, extra-cmake-modules
, inotify-tools
, installShellFiles
, libcloudproviders
, librsvg
, libsecret
@ -26,7 +25,7 @@
mkDerivation rec {
pname = "nextcloud-client";
version = "3.9.0";
version = "3.9.1";
outputs = [ "out" "dev" ];
@ -34,7 +33,7 @@ mkDerivation rec {
owner = "nextcloud";
repo = "desktop";
rev = "v${version}";
sha256 = "sha256-XcQYttd5dl2TCbBxOlRBg8/mEiHekoxayPi81ot7N7o=";
sha256 = "sha256-DQM7n7rTk1q+F8H8OpiEgg1pvIzQw2UwBObbj20O5MQ=";
};
patches = [

View File

@ -13,11 +13,11 @@
stdenv.mkDerivation rec {
pname = "twingate";
version = "1.0.60";
version = "1.0.83+88994";
src = fetchurl {
url = "https://binaries.twingate.com/client/linux/DEB/${version}/twingate-amd64.deb";
sha256 = "b308c422af8a33ecd58e21a10a72c353351a189df67006e38d1ec029a93d5678";
url = "https://binaries.twingate.com/client/linux/DEB/x86_64/${version}/twingate-amd64.deb";
hash = "sha256-rPYjGSrjSNSdjMZRP0Gd7a9lRC+I06oOvZZEUEJ6s5k=";
};
buildInputs = [

View File

@ -3,16 +3,16 @@
rustPlatform.buildRustPackage rec {
pname = "elan";
version = "2.0.0";
version = "2.0.1";
src = fetchFromGitHub {
owner = "leanprover";
repo = "elan";
rev = "v${version}";
sha256 = "sha256-97gkBViNIqs03JuPlUOyE/X3UKzF5KVZBKH3JnXw37E=";
sha256 = "sha256-gnE0uISKfUqUdmrHI6F7nLOFcsQALjRy584nMRrC68w=";
};
cargoHash = "sha256-9aLCElsoWTUsuy+muhCcgo/1xmRYsbQDvhRa5YsV3lM=";
cargoHash = "sha256-rjxJ4bGep5OJUWME+EV5CqEsFY1SuoU07ANL0cbD+DU=";
nativeBuildInputs = [ pkg-config makeWrapper ];

View File

@ -242,7 +242,11 @@ rec {
*/
writeScriptBin = name: text: writeTextFile {inherit name text; executable = true; destination = "/bin/${name}";};
writeScriptBin = name: text: writeTextFile {
inherit name text;
executable = true;
destination = "/bin/${name}";
};
/*
Similar to writeScript. Writes a Shell script and checks its syntax.
@ -374,6 +378,9 @@ rec {
# Pointless to do this on a remote machine.
preferLocalBuild = true;
allowSubstitutes = false;
meta = {
mainProgram = name;
};
}
''
n=$out/bin/$name

View File

@ -0,0 +1,33 @@
/*
Run all tests with:
cd nixpkgs
nix-build -A tests.trivial-builders
or run a specific test with:
cd nixpkgs
nix-build -A tests.trivial-builders.foo
*/
{ callPackage, lib, stdenv }:
let
inherit (lib) recurseIntoAttrs;
in
recurseIntoAttrs {
concat = callPackage ./concat-test.nix {};
linkFarm = callPackage ./link-farm.nix {};
overriding = callPackage ../test-overriding.nix {};
references =
# VM test not supported beyond linux yet
if stdenv.hostPlatform.isLinux
then callPackage ./references.nix {}
else null;
writeCBin = callPackage ./writeCBin.nix {};
writeScriptBin = callPackage ./writeScriptBin.nix {};
writeShellScript = callPackage ./write-shell-script.nix {};
writeShellScriptBin = callPackage ./writeShellScriptBin.nix {};
writeStringReferencesToFile = callPackage ./writeStringReferencesToFile.nix {};
writeTextFile = callPackage ./write-text-file.nix {};
}

View File

@ -1,34 +1,71 @@
{ writeTextFile }:
/*
To run:
cd nixpkgs
nix-build -A tests.trivial-builders.writeTextFile
or to run an individual test case
cd nixpkgs
nix-build -A tests.trivial-builders.writeTextFile.foo
*/
{ lib, runCommand, runtimeShell, writeTextFile }:
let
veryWeirdName = ''here's a name with some "bad" characters, like spaces and quotes'';
in writeTextFile {
name = "weird-names";
destination = "/etc/${veryWeirdName}";
text = ''passed!'';
checkPhase = ''
# intentionally hardcode everything here, to make sure
# Nix does not mess with file paths
in
lib.recurseIntoAttrs {
name="here's a name with some \"bad\" characters, like spaces and quotes"
fullPath="$out/etc/$name"
different-exe-name =
let
pkg = writeTextFile {
name = "bar";
destination = "/bin/foo";
executable = true;
text = ''
#!${runtimeShell}
echo hi
'';
};
in
assert pkg.meta.mainProgram == "foo";
assert baseNameOf (lib.getExe pkg) == "foo";
assert pkg.name == "bar";
runCommand "test-writeTextFile-different-exe-name" {} ''
PATH="${lib.makeBinPath [ pkg ]}:$PATH"
x=$(foo)
[[ "$x" == hi ]]
touch $out
'';
if [ -f "$fullPath" ]; then
echo "[PASS] File exists!"
else
echo "[FAIL] File was not created at expected path!"
exit 1
fi
weird-name = writeTextFile {
name = "weird-names";
destination = "/etc/${veryWeirdName}";
text = ''passed!'';
checkPhase = ''
# intentionally hardcode everything here, to make sure
# Nix does not mess with file paths
content=$(<"$fullPath")
expected="passed!"
name="here's a name with some \"bad\" characters, like spaces and quotes"
fullPath="$out/etc/$name"
if [ "$content" = "$expected" ]; then
echo "[PASS] Contents match!"
else
echo "[FAIL] File contents don't match!"
echo " Expected: $expected"
echo " Got: $content"
exit 2
fi
'';
if [ -f "$fullPath" ]; then
echo "[PASS] File exists!"
else
echo "[FAIL] File was not created at expected path!"
exit 1
fi
content=$(<"$fullPath")
expected="passed!"
if [ "$content" = "$expected" ]; then
echo "[PASS] Contents match!"
else
echo "[FAIL] File contents don't match!"
echo " Expected: $expected"
echo " Got: $content"
exit 2
fi
'';
};
}

View File

@ -0,0 +1,43 @@
/*
Run with:
cd nixpkgs
nix-build -A tests.trivial-builders.writeCBin
*/
{ lib, writeCBin, runCommand }:
let
output = "hello";
pkg = writeCBin "test-script" ''
#include <stdio.h>
int main () {
printf("hello\n");
return 0;
}
'';
in
assert pkg.meta.mainProgram == "test-script";
runCommand "test-writeCBin" { } ''
echo Testing with getExe...
target=${lib.getExe pkg}
expected=${lib.escapeShellArg output}
got=$("$target")
if [[ "$got" != "$expected" ]]; then
echo "wrong output: expected $expected, got $got"
exit 1
fi
echo Testing with makeBinPath...
PATH="${lib.makeBinPath [ pkg ]}:$PATH"
got=$(test-script)
if [[ "$got" != "$expected" ]]; then
echo "wrong output: expected $expected, got $got"
exit 1
fi
touch $out
''

View File

@ -0,0 +1,39 @@
/*
Run with:
cd nixpkgs
nix-build -A tests.trivial-builders.writeShellScriptBin
*/
{ lib, writeScriptBin, runCommand }:
let
output = "hello";
pkg = writeScriptBin "test-script" ''
echo ${lib.escapeShellArg output}
'';
in
assert pkg.meta.mainProgram == "test-script";
runCommand "test-writeScriptBin" { } ''
echo Testing with getExe...
target=${lib.getExe pkg}
expected=${lib.escapeShellArg output}
got=$("$target")
if [[ "$got" != "$expected" ]]; then
echo "wrong output: expected $expected, got $got"
exit 1
fi
echo Testing with makeBinPath...
PATH="${lib.makeBinPath [ pkg ]}:$PATH"
got=$(test-script)
if [[ "$got" != "$expected" ]]; then
echo "wrong output: expected $expected, got $got"
exit 1
fi
touch $out
''

View File

@ -0,0 +1,39 @@
/*
Run with:
cd nixpkgs
nix-build -A tests.trivial-builders.writeShellScriptBin
*/
{ lib, writeShellScriptBin, runCommand }:
let
output = "hello";
pkg = writeShellScriptBin "test-script" ''
echo ${lib.escapeShellArg output}
'';
in
assert pkg.meta.mainProgram == "test-script";
runCommand "test-writeShellScriptBin" { } ''
echo Testing with getExe...
target=${lib.getExe pkg}
expected=${lib.escapeShellArg output}
got=$("$target")
if [[ "$got" != "$expected" ]]; then
echo "wrong output: expected $expected, got $got"
exit 1
fi
echo Testing with makeBinPath...
PATH="${lib.makeBinPath [ pkg ]}:$PATH"
got=$(test-script)
if [[ "$got" != "$expected" ]]; then
echo "wrong output: expected $expected, got $got"
exit 1
fi
touch $out
''

View File

@ -30,13 +30,13 @@
stdenv.mkDerivation rec {
pname = "elementary-greeter";
version = "6.1.1";
version = "7.0.0";
src = fetchFromGitHub {
owner = "elementary";
repo = "greeter";
rev = version;
sha256 = "sha256-6rjZOX9JOTjZwqWVWTtKjGNy8KgWllE9VQZzwhuBAwE=";
sha256 = "sha256-m/xuaMCAPoqhl/M547mdafBPBu3UhHmVmBIUKQoS5L8=";
};
patches = [

View File

@ -15,13 +15,13 @@
stdenv.mkDerivation rec {
pname = "wingpanel-indicator-a11y";
version = "1.0.1";
version = "1.0.2";
src = fetchFromGitHub {
owner = "elementary";
repo = pname;
rev = version;
sha256 = "sha256-iS+xTCjbRZfaUiOtHbQ+/SaajfWWAlC9XiZbIGZPO9I=";
sha256 = "sha256-HECK+IEUAKJ4F1TotTHF84j4BYS6EZdAtLBoM401+mw=";
};
nativeBuildInputs = [

View File

@ -23,13 +23,13 @@
stdenv.mkDerivation rec {
pname = "elementary-settings-daemon";
version = "1.3.0";
version = "1.3.1";
src = fetchFromGitHub {
owner = "elementary";
repo = "settings-daemon";
rev = version;
sha256 = "sha256-464caR36oSUhxCU0utP5eMYiiBekU6W4bVIbsUoiFRI=";
sha256 = "sha256-mEmc9uLwUTObsP70P0G2vcRdQF6do/wMTQjvfLUU//o=";
};
nativeBuildInputs = [
@ -58,20 +58,8 @@ stdenv.mkDerivation rec {
postPatch = ''
chmod +x meson/post_install.py
patchShebangs meson/post_install.py
substituteInPlace data/io.elementary.settings-daemon.check-for-firmware-updates.service \
--replace "/usr/bin/busctl" "${systemd}/bin/busctl"
'';
postInstall = ''
# https://github.com/elementary/settings-daemon/pull/75
mkdir -p $out/etc/xdg/autostart
ln -s $out/share/applications/io.elementary.settings-daemon.desktop $out/etc/xdg/autostart/io.elementary.settings-daemon.desktop
'';
# https://github.com/elementary/settings-daemon/pull/74
PKG_CONFIG_SYSTEMD_SYSTEMDSYSTEMUNITDIR = "${placeholder "out"}/lib/systemd/system";
passthru = {
updateScript = nix-update-script { };
};

View File

@ -4,12 +4,16 @@ mkCoqDerivation {
pname = "trakt";
owner = "ecranceMERCE";
release."1.0".rev = "d1c9daba8fe0584b526047862dd27ddf836dbbf2";
release."1.0".sha256 = "sha256-Qhw5fWFYxUFO2kIWWz/og+4fuy9aYG27szfNk3IglhY=";
release."1.1".sha256 = "sha256-JmrtM9WcT8Bfy0WZCw8xdubuMomyXmfLXJwpnCNrvsg=";
release."1.2".sha256 = "sha256-YQRtK2MjjsMlytdu9iutUDKhwOo4yWrSwhyBb2zNHoE=";
release."1.2+8.13".sha256 = "sha256-hozms4sPSMr4lFkJ20x+uW9Wqt067bifnPQxdGyKhQQ=";
inherit version;
defaultVersion = with lib.versions; lib.switch [ coq.version ] [
{ cases = [ (range "8.13" "8.17") ]; out = "1.0"; }
{ cases = [ (range "8.15" "8.17") ]; out = "1.2"; }
{ cases = [ (isEq "8.13") ]; out = "1.2+8.13"; }
{ cases = [ (range "8.13" "8.17") ]; out = "1.1"; }
] null;
propagatedBuildInputs = [ coq-elpi ];
@ -17,7 +21,7 @@ mkCoqDerivation {
meta = with lib; {
description = "A generic goal preprocessing tool for proof automation tactics in Coq";
maintainers = with maintainers; [ siraben ];
license = licenses.cecill-b;
license = licenses.lgpl3Plus;
platforms = platforms.unix;
};
}

View File

@ -30,8 +30,8 @@ stdenv.mkDerivation rec {
patches = [
# fix platform detection
(fetchpatch {
url = "https://salsa.debian.org/multimedia-team/intel-media-driver-non-free/-/raw/master/debian/patches/0002-Remove-settings-based-on-ARCH.patch";
sha256 = "sha256-f4M0CPtAVf5l2ZwfgTaoPw7sPuAP/Uxhm5JSHEGhKT0=";
url = "https://salsa.debian.org/multimedia-team/intel-media-driver-non-free/-/raw/04ffb03f744780a55aba311c612d708b00584bb7/debian/patches/0002-Remove-settings-based-on-ARCH.patch";
sha256 = "sha256-o/Pg0S53SYh3O7L+AwxOPl1Bx4TS6iKB8ql8GhhHI/o=";
})
];

View File

@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, aiocoap
, async-interrupt
, bleak
, bleak-retry-connector
, chacha20poly1305
@ -18,7 +19,7 @@
buildPythonPackage rec {
pname = "aiohomekit";
version = "2.6.10";
version = "2.6.11";
format = "pyproject";
disabled = pythonOlder "3.9";
@ -27,7 +28,7 @@ buildPythonPackage rec {
owner = "Jc2k";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-2+PqXIKjEJWfTUAJYctWojwoWl7QOfxbbH6c7ZlTNRI=";
hash = "sha256-oTH/YM21l9N03F9zFTOAvxgdG6SyL6qXeeA28jLAOq8=";
};
nativeBuildInputs = [
@ -36,6 +37,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [
aiocoap
async-interrupt
bleak
bleak-retry-connector
chacha20poly1305

View File

@ -1,62 +1,74 @@
{ lib, buildPythonPackage, fetchPypi, isPy27
, entrypoints
, glibcLocales
, ipython
, jinja2
, jsonschema
, numpy
, pandas
, pytestCheckHook
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, recommonmark
, six
, sphinx
# Runtime dependencies
, hatchling
, toolz
, typing ? null
, numpy
, jsonschema
, typing-extensions
, pandas
, jinja2
, importlib-metadata
# Build, dev and test dependencies
, ipython
, pytestCheckHook
, vega_datasets
, sphinx
}:
buildPythonPackage rec {
pname = "altair";
version = "4.2.2";
disabled = isPy27;
version = "5.0.1";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-OTmaJnxJsw0QLBBBHmerJjdBVqhLGuufzRUUBCm6ScU=";
src = fetchFromGitHub {
owner = "altair-viz";
repo = "altair";
rev = "refs/tags/v${version}";
hash = "sha256-7bTrfryu4oaodVGNFNlVk9vXmDA5/9ahvCmvUGzZ5OQ=";
};
nativeBuildInputs = [
hatchling
];
propagatedBuildInputs = [
entrypoints
jinja2
jsonschema
numpy
pandas
six
toolz
jinja2
] ++ lib.optionals (pythonOlder "3.5") [ typing ];
] ++ lib.optional (pythonOlder "3.8") importlib-metadata
++ lib.optional (pythonOlder "3.11") typing-extensions;
nativeCheckInputs = [
glibcLocales
ipython
pytestCheckHook
recommonmark
sphinx
vega_datasets
pytestCheckHook
];
pythonImportsCheck = [ "altair" ];
# avoid examples directory, which fetches web resources
preCheck = ''
cd altair/tests
'';
disabledTestPaths = [
# Disabled because it requires internet connectivity
"tests/test_examples.py"
# TODO: Disabled because of missing altair_viewer package
"tests/vegalite/v5/test_api.py"
# avoid updating files and dependency on black
"tests/test_toplevel.py"
];
meta = with lib; {
description = "A declarative statistical visualization library for Python.";
homepage = "https://github.com/altair-viz/altair";
homepage = "https://altair-viz.github.io";
downloadPage = "https://github.com/altair-viz/altair";
license = licenses.bsd3;
maintainers = with maintainers; [ teh ];
platforms = platforms.unix;
maintainers = with maintainers; [ teh vinetos ];
};
}

View File

@ -0,0 +1,49 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "async-interrupt";
version = "1.1.1";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "bdraco";
repo = "async_interrupt";
rev = "refs/tags/v${version}";
hash = "sha256-mbvOj1ybCkDNr3je3PtFwmddkh2k/nHOerpC6hGSUYI=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=async_interrupt --cov-report=term-missing:skip-covered" ""
'';
nativeBuildInputs = [
poetry-core
];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [
"async_interrupt"
];
meta = with lib; {
description = "Context manager to raise an exception when a future is done";
homepage = "https://github.com/bdraco/async_interrupt";
changelog = "https://github.com/bdraco/async_interrupt/blob/${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -13,14 +13,14 @@
buildPythonPackage rec {
pname = "auth0-python";
version = "4.3.0";
version = "4.4.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-enSG8rO0gMpSaf6otdx94xncyxc6Uv570VKVVQkit1g=";
hash = "sha256-Yf8/NmQygdikQXv9sUukQEKKd+FcpSPnGbbi8kzVyLo=";
};
propagatedBuildInputs = [

View File

@ -0,0 +1,198 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, hatchling
, hatch-vcs
, aiohttp
, attrs
, cattrs
, circus
, click
, click-option-group
, cloudpickle
, deepmerge
, fs
, jinja2
, numpy
, opentelemetry-api
, opentelemetry-instrumentation
, opentelemetry-instrumentation-aiohttp-client
, opentelemetry-instrumentation-asgi
, opentelemetry-sdk
, opentelemetry-semantic-conventions
, opentelemetry-util-http
, packaging
, pathspec
, pip-requirements-parser
, pip-tools
, prometheus-client
, psutil
, pynvml
, python-dateutil
, python-json-logger
, python-multipart
, pyyaml
, requests
, rich
, schema
, simple-di
, starlette
, uvicorn
, watchfiles
, fs-s3fs
, grpcio
, grpcio-health-checking
, opentelemetry-instrumentation-grpc
, protobuf
, grpcio-channelz
, grpcio-reflection
, filetype
, pillow
, pydantic
, pandas
, pyarrow
, opentelemetry-exporter-otlp-proto-http
# https://pypi.org/project/opentelemetry-exporter-jaeger-proto-grpc/
# , opentelemetry-exporter-jaeger # support for this exporter ends in july 2023
, opentelemetry-exporter-otlp
# , opentelemetry-exporter-zipkin
, tritonclient
# native check inputs
, pytestCheckHook
, scikit-learn
, lxml
, orjson
, pytest-asyncio
, fastapi
}:
let
version = "1.1.0";
aws = [ fs-s3fs ];
grpc = [
grpcio
grpcio-health-checking
opentelemetry-instrumentation-grpc
protobuf
];
io-file = [ filetype ];
io-image = io-file ++ [ pillow ];
io-json = [ pydantic ];
io-pandas = [ pandas pyarrow ];
grpc-reflection = grpc ++ [ grpcio-reflection ];
grpc-channelz = grpc ++ [ grpcio-channelz ];
monitor-otlp = [ opentelemetry-exporter-otlp-proto-http ];
# tracing-jaeger = [ opentelemetry-exporter-jaeger ];
tracing-otlp = [ opentelemetry-exporter-otlp ];
# tracing-zipkin = [ opentelemetry-exporter-zipkin ];
io = io-json ++ io-image ++ io-pandas ++ io-file;
tracing = tracing-otlp; # ++ tracing-zipkin ++ tracing-jaeger
optional-dependencies = {
all = aws ++ io ++ grpc ++ grpc-reflection ++ grpc-channelz ++ tracing ++ monitor-otlp;
inherit aws grpc io-file io-image io-json io-pandas io grpc-reflection
grpc-channelz monitor-otlp tracing-otlp tracing;
triton = [ tritonclient ] ++ tritonclient.optional-dependencies.http ++ tritonclient.optional-dependencies.grpc;
};
in
buildPythonPackage {
pname = "bentoml";
inherit version;
format = "pyproject";
src = fetchFromGitHub {
owner = "bentoml";
repo = "BentoML";
rev = "v${version}";
hash = "sha256-ZhgBw/zBazfVNPvcfAlHEGvc9hzVm7aKLXmwwvMmF0A=";
};
pythonRelaxDeps = [
"opentelemetry-semantic-conventions"
];
nativeBuildInputs = [
hatchling
hatch-vcs
];
propagatedBuildInputs = [
aiohttp
attrs
cattrs
circus
click
click-option-group
cloudpickle
deepmerge
fs
jinja2
numpy
opentelemetry-api
opentelemetry-instrumentation
opentelemetry-instrumentation-aiohttp-client
opentelemetry-instrumentation-asgi
opentelemetry-sdk
opentelemetry-semantic-conventions
opentelemetry-util-http
packaging
pathspec
pip-requirements-parser
pip-tools
prometheus-client
psutil
pynvml
python-dateutil
python-json-logger
python-multipart
pyyaml
requests
rich
schema
simple-di
starlette
uvicorn
watchfiles
];
passthru.optional-dependencies = optional-dependencies;
pythonImportsCheck = [ "bentoml" ];
preCheck = ''
# required for CI testing
# https://github.com/bentoml/BentoML/pull/4056/commits/66302b502a3f4df4e8e6643d2afefefca974073e
export GITHUB_ACTIONS=1
'';
disabledTestPaths = [
"tests/e2e"
"tests/integration"
];
disabledTests = [
# flaky test
"test_store"
];
nativeCheckInputs = [
pytestCheckHook
pandas
pydantic
scikit-learn
lxml
orjson
pytest-asyncio
pillow
fastapi
starlette
] ++ optional-dependencies.grpc;
meta = with lib; {
description = "Build Production-Grade AI Applications";
homepage = "https://github.com/bentoml/BentoML";
changelog = "https://github.com/bentoml/BentoML/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ happysalada natsukium ];
};
}

View File

@ -14,12 +14,12 @@
buildPythonPackage rec {
pname = "chiavdf";
version = "1.0.9";
version = "1.0.10";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-G4npp0G8TNk2y/T6myNr8NCfkBdcknsWds+XBZiNnQY=";
hash = "sha256-660Frlaj6WbYOl0sfb5ox6qTzE+jKJR0Qka9nEijSyg=";
};
patches = [

View File

@ -30,7 +30,7 @@
buildPythonPackage rec {
pname = "elastic-apm";
version = "6.17.0";
version = "6.18.0";
format = "setuptools";
disabled = pythonOlder "3.8";
@ -39,7 +39,7 @@ buildPythonPackage rec {
owner = "elastic";
repo = "apm-agent-python";
rev = "refs/tags/v${version}";
hash = "sha256-Tyot/JswIiwxugjxyHcENDAGF9uxwaptTIZwU/GnjAU=";
hash = "sha256-s4aM2HuagqcF2sLHHRh2kj1tglf+JZ7hXT4PcAeFStQ=";
};
propagatedBuildInputs = [

View File

@ -6,7 +6,7 @@
buildPythonPackage rec {
pname = "elementpath";
version = "4.1.4";
version = "4.1.5";
format = "setuptools";
disabled = pythonOlder "3.7";
@ -15,7 +15,7 @@ buildPythonPackage rec {
owner = "sissaschool";
repo = "elementpath";
rev = "refs/tags/v${version}";
hash = "sha256-cU22JdrCTvg8cF1LK9dYfOTztp3qoXV9VK6aMpbKFHc=";
hash = "sha256-5K2xcnTo3/A6/pCxQn5qZqni7C64p/yNAWWJlhQeKe4=";
};
# avoid circular dependency with xmlschema which directly depends on this

View File

@ -0,0 +1,29 @@
{ lib
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "fontawesomefree";
version = "6.4.0";
format = "wheel";
# they only provide a wheel
src = fetchPypi {
inherit pname version format;
dist = "py3";
python = "py3";
hash = "sha256-4S7a1xts9pk/x8aupjZ+Ex8vJHtkNfrKmbEjKbrNKyc=";
};
pythonImportsCheck = [
"fontawesomefree"
];
meta = with lib; {
homepage = "https://github.com/FortAwesome/Font-Awesome";
description = "Icon library and toolkit";
license = with licenses; [ ofl cc-by-40 ];
maintainers = with maintainers; [ netali ];
};
}

View File

@ -11,7 +11,7 @@
buildPythonPackage rec {
pname = "holidays";
version = "0.28";
version = "0.29";
format = "setuptools";
disabled = pythonOlder "3.8";
@ -20,7 +20,7 @@ buildPythonPackage rec {
owner = "dr-prodigy";
repo = "python-holidays";
rev = "refs/tags/v.${version}";
hash = "sha256-JHj7fSE8p3TLViDSegl6gm35u53D9NvN7Oa2TBjN9t4=";
hash = "sha256-ijhqu0LzQzpjDSe9ZjNhgdjq/DJuD7oVbRTLX97nGHM=";
};
propagatedBuildInputs = [

View File

@ -52,9 +52,7 @@ buildNpmPackage rec {
makeWrapper ${nodePackages.ts-node}/bin/ts-node $out/bin/lv_img_conv --add-flags $out/lib/node_modules/lv_img_conv/lib/cli.ts
'';
passthru.updateScript = nix-update-script {
attrPath = pname;
};
passthru.updateScript = nix-update-script { };
meta = with lib; {
changelog = "https://github.com/lvgl/lv_img_conv/releases/tag/v${version}";

View File

@ -2,11 +2,11 @@
stdenv.mkDerivation rec {
pname = "micronaut";
version = "4.0.0";
version = "4.0.1";
src = fetchzip {
url = "https://github.com/micronaut-projects/micronaut-starter/releases/download/v${version}/micronaut-cli-${version}.zip";
sha256 = "sha256-Ois5peY2Znj33wg/iVUa2r4U1dRU1R8KKvpptwK+o9w=";
sha256 = "sha256-yCCnEFz6PGhfrbWwo/HVLPr6qrIxvlZhAdIU4XoOjqc=";
};
nativeBuildInputs = [ makeWrapper installShellFiles ];

View File

@ -4,7 +4,7 @@
, fetchurl, fetchpatch, pkg-config, perl, texinfo, setupDebugInfoDirs, buildPackages
# Run time
, ncurses, readline, gmp, mpfr, expat, libipt, zlib, zstd, dejagnu, sourceHighlight
, ncurses, readline, gmp, mpfr, expat, libipt, zlib, zstd, dejagnu, sourceHighlight, libiconv
, pythonSupport ? stdenv.hostPlatform == stdenv.buildPlatform && !stdenv.hostPlatform.isCygwin, python3 ? null
, enableDebuginfod ? lib.meta.availableOn stdenv.hostPlatform elfutils, elfutils
@ -57,7 +57,8 @@ stdenv.mkDerivation rec {
buildInputs = [ ncurses readline gmp mpfr expat libipt zlib zstd guile sourceHighlight ]
++ lib.optional pythonSupport python3
++ lib.optional doCheck dejagnu
++ lib.optional enableDebuginfod (elfutils.override { enableDebuginfod = true; });
++ lib.optional enableDebuginfod (elfutils.override { enableDebuginfod = true; })
++ lib.optional stdenv.isDarwin libiconv;
propagatedNativeBuildInputs = [ setupDebugInfoDirs ];

View File

@ -7,11 +7,11 @@
stdenv.mkDerivation rec {
pname = "knot-dns";
version = "3.2.8";
version = "3.2.9";
src = fetchurl {
url = "https://secure.nic.cz/files/knot-dns/knot-${version}.tar.xz";
sha256 = "ef419a428f327def77780bc90eda763b51e6121fe548543da84b9eb96a261a6e";
sha256 = "bc1f9eb8c9f67f52805f3acfa2d0153190245fa145b007fafa9068d2da292506";
};
outputs = [ "bin" "out" "dev" ];

View File

@ -66,15 +66,7 @@ with pkgs;
cuda = callPackage ./cuda { };
trivial-builders = recurseIntoAttrs {
writeStringReferencesToFile = callPackage ../build-support/trivial-builders/test/writeStringReferencesToFile.nix {};
writeTextFile = callPackage ../build-support/trivial-builders/test/write-text-file.nix {};
writeShellScript = callPackage ../build-support/trivial-builders/test/write-shell-script.nix {};
references = callPackage ../build-support/trivial-builders/test/references.nix {};
overriding = callPackage ../build-support/trivial-builders/test-overriding.nix {};
concat = callPackage ../build-support/trivial-builders/test/concat-test.nix {};
linkFarm = callPackage ../build-support/trivial-builders/test/link-farm.nix {};
};
trivial-builders = callPackage ../build-support/trivial-builders/test/default.nix {};
writers = callPackage ../build-support/writers/test.nix {};

View File

@ -19,9 +19,7 @@ buildGoModule rec {
"-X main.version=${version}"
];
passthru.updateScript = nix-update-script {
attrPath = pname;
};
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "A tool to simplify storing secrets that should be accessible in the shell environment in your git repo.";

View File

@ -93,9 +93,7 @@ python.pkgs.buildPythonApplication rec {
passthru = {
inherit python;
updateScript = nix-update-script {
attrPath = pname;
};
updateScript = nix-update-script { };
tests.version = testers.testVersion {
package = gimme-aws-creds;
command = ''touch tmp.conf && OKTA_CONFIG="tmp.conf" gimme-aws-creds --version'';

View File

@ -6,16 +6,16 @@
buildGoModule rec {
pname = "chezmoi";
version = "2.34.3";
version = "2.35.2";
src = fetchFromGitHub {
owner = "twpayne";
repo = "chezmoi";
rev = "v${version}";
hash = "sha256-Cy2mRcx8UZp9+7O824sosQ8ld9ppl2YvCssvL16aBsA=";
hash = "sha256-drydLWt0B7mQKMn1GzEe/I352b2hvhCKV8tUicZoVHk=";
};
vendorHash = "sha256-Z812v+UTaAi3tA2hWtZkQXrtlXhQzlawYtbQdX1HHN0=";
vendorHash = "sha256-HZYYENQIkmAhm0oDfUUpiAqWTbmNsy6u6hOyUvd8iC8=";
doCheck = false;

View File

@ -5,16 +5,16 @@
buildGoModule rec {
pname = "amass";
version = "4.0.3";
version = "4.0.4";
src = fetchFromGitHub {
owner = "OWASP";
repo = "Amass";
rev = "v${version}";
hash = "sha256-c5LHF8SPvBqXpz5mRIKU402ZeCs8VUzPIwLoMPrWzdA=";
rev = "refs/tags/v${version}";
hash = "sha256-KzMpe6pSPCNlk4fhZUZ1dvcj2Vgk8gHbEhVwlxOFKFg=";
};
vendorHash = "sha256-4Ml9qiaXf2zBIDdJE7JWHf684YD1yuIPd4VTRcBNLcE=";
vendorHash = "sha256-YdHJMUgVNUAREmvBDQl8p5ESOmJykheaQSU6asyZ7qc=";
outputs = [
"out"

View File

@ -7,16 +7,16 @@
buildGoModule rec {
pname = "trufflehog";
version = "3.44.0";
version = "3.45.1";
src = fetchFromGitHub {
owner = "trufflesecurity";
repo = "trufflehog";
rev = "refs/tags/v${version}";
hash = "sha256-2AGdF+E3YNRiM8So+i6XWkQxgDgF8wu2z6hnuuzh4NQ=";
hash = "sha256-kWEDeFx3ngpL6ySCD5GsJbmtbhv1qCMt9yjrskLmbbg=";
};
vendorHash = "sha256-IJZSYwF71pbRr+k8dCE8OOEQwK3srPtGbrJIltfVNBU=";
vendorHash = "sha256-dg29rK5/se2DVhc+GLFeFzh3bqJl3dfC2zjGLX7utDs=";
ldflags = [
"-s"

View File

@ -35437,6 +35437,8 @@ with pkgs;
tickrs = callPackage ../applications/misc/tickrs { };
tijolo = callPackage ../applications/editors/tijolo { };
tilemaker = callPackage ../applications/misc/tilemaker { };
timbreid = callPackage ../applications/audio/pd-plugins/timbreid {

View File

@ -736,6 +736,8 @@ self: super: with self; {
async-dns = callPackage ../development/python-modules/async-dns { };
async-interrupt = callPackage ../development/python-modules/async-interrupt { };
async-lru = callPackage ../development/python-modules/async-lru { };
async-modbus = callPackage ../development/python-modules/async-modbus { };
@ -1320,6 +1322,8 @@ self: super: with self; {
beniget = callPackage ../development/python-modules/beniget { };
bentoml = callPackage ../development/python-modules/bentoml { };
bespon = callPackage ../development/python-modules/bespon { };
betacode = callPackage ../development/python-modules/betacode { };
@ -3924,6 +3928,8 @@ self: super: with self; {
folium = callPackage ../development/python-modules/folium { };
fontawesomefree = callPackage ../development/python-modules/fontawesomefree { };
fontforge = toPythonModule (pkgs.fontforge.override {
withPython = true;
inherit python;