Compare commits

...

64 Commits

Author SHA1 Message Date
Fabian Affolter 40d15ed86d
Merge pull request #305084 from fabaff/uuid-remove
python311Packages.uuid: remove
2024-04-19 08:52:55 +02:00
Fabian Affolter afd8917587
Merge pull request #305101 from fabaff/gtfocli
gtfocli: init at 0.0.4
2024-04-19 08:52:22 +02:00
Fabian Affolter 1bfef60705
Merge pull request #305115 from fabaff/nomore403
nomore403: init at 1.0.1
2024-04-19 08:52:13 +02:00
Leona Maroni b196712441
Merge pull request #293929 from emilytrau/python-i18n-zhf
python3Packages.python-i18n: replace use of deprecated assertRaisesRegexp
2024-04-19 08:49:15 +02:00
Fabian Affolter 70c4b42bac
Merge pull request #305080 from fabaff/proxy-py-fix
python312Packages.proxy-py: 2.4.3 -> 2.4.4rc5
2024-04-19 08:42:41 +02:00
Fabian Affolter d5d6cdf6f6
Merge pull request #305082 from fabaff/aiozeroconf-refactor
python312Packages.aiozeroconf: refactor
2024-04-19 08:42:30 +02:00
Fabian Affolter 3355768e34
Merge pull request #305235 from r-ryantm/auto-update/python312Packages.dirigera
python312Packages.dirigera: 1.1.2 -> 1.1.4
2024-04-19 08:36:40 +02:00
Vladimír Čunát 1f04f9a6d1
Merge #305135: knot-resolver: 5.7.1 -> 5.7.2 2024-04-19 08:33:10 +02:00
Rick van Schijndel e00a40a257
Merge pull request #298680 from gvolpe/lib/transposeMap
lib/attrsets: add mapCartesianProduct function
2024-04-19 08:26:09 +02:00
Matthias Beyer f8022afb8b
Merge pull request #304869 from matthiasbeyer/add-myself-as-maintainer-mdbook-tooling
mdbook-*: Add myself as maintainer
2024-04-19 07:52:38 +02:00
Matthias Beyer d080edeb6b
Merge pull request #305198 from r-ryantm/auto-update/python312Packages.itemdb
python312Packages.itemdb: 1.1.2 -> 1.2.0
2024-04-19 07:43:49 +02:00
Matthias Beyer e86e51d897
Merge pull request #305114 from r-ryantm/auto-update/cargo-show-asm
cargo-show-asm: 0.2.31 -> 0.2.32
2024-04-19 07:40:17 +02:00
Nick Cao 58e21d2e50
Merge pull request #305216 from r-ryantm/auto-update/python312Packages.green
python312Packages.green: 4.0.1 -> 4.0.2
2024-04-19 01:16:44 -04:00
Nick Cao d6e494858f
Merge pull request #305087 from r-ryantm/auto-update/step-kms-plugin
step-kms-plugin: 0.11.0 -> 0.11.1
2024-04-19 01:11:35 -04:00
Nick Cao 8d1fb43abb
Merge pull request #305091 from r-ryantm/auto-update/python312Packages.unearth
python312Packages.unearth: 0.15.1 -> 0.15.2
2024-04-19 01:10:54 -04:00
Pol Dellaiera 32bf14c3a4
Merge pull request #297572 from quantenzitrone/katawa-shoujo-re-engineered
katawa-shoujo-re-engineered: init at 1.4.4
2024-04-19 07:04:04 +02:00
Pol Dellaiera 77eab23d82
Merge pull request #304986 from drupol/php/fix-opentelemetry-on-darwin
phpExtensions.opentelemetry: fix builds on Darwin
2024-04-19 07:02:48 +02:00
R. Ryantm 3062869989 python312Packages.dirigera: 1.1.2 -> 1.1.4 2024-04-19 04:51:55 +00:00
OTABI Tomoya 4e5c8cd2a5
Merge pull request #305199 from r-ryantm/auto-update/python312Packages.jupyter-server-fileid
python312Packages.jupyter-server-fileid: 0.9.1 -> 0.9.2
2024-04-19 13:28:25 +09:00
OTABI Tomoya 5805699997
Merge pull request #305170 from r-ryantm/auto-update/python311Packages.ipyvue
python311Packages.ipyvue: 1.10.2 -> 1.11.0
2024-04-19 13:25:36 +09:00
Nikolay Korotkiy bc047f9a00
Merge pull request #298800 from Qusic/slock
slock: add updateScript
2024-04-19 08:17:43 +04:00
Silvan Mosberger 91fc0f7917
Merge pull request #305174 from willbush/add-maintainer-willbush
maintainers: add willbush
2024-04-19 05:41:47 +02:00
R. Ryantm b85de5d0af python312Packages.green: 4.0.1 -> 4.0.2 2024-04-19 03:08:52 +00:00
R. Ryantm cbebf81e3a python312Packages.jupyter-server-fileid: 0.9.1 -> 0.9.2 2024-04-19 02:14:25 +00:00
R. Ryantm 4ce3d2bf5c python312Packages.itemdb: 1.1.2 -> 1.2.0 2024-04-19 02:11:27 +00:00
superherointj 3d06f73179
Merge pull request #305126 from nadir-ishiguro/update-nom
nom: 2.1.6 -> 2.2.1
2024-04-18 22:21:01 -03:00
Will Bush 2408cfefbb
maintainers: add willbush 2024-04-18 19:34:50 -05:00
R. Ryantm 0793aedfe3 python311Packages.ipyvue: 1.10.2 -> 1.11.0 2024-04-18 23:38:57 +00:00
Sandro Jäckel 1385946a93
knot-resolver: 5.7.1 -> 5.7.2 2024-04-18 22:32:58 +02:00
Nadir Ishiguro 20a4c15bcf
nom: 2.1.6 -> 2.2.1
Changelog: https://github.com/guyfedwards/nom/releases/tag/v2.2.1
2024-04-18 21:09:16 +02:00
R. Ryantm 3e45f8c0e6 cargo-show-asm: 0.2.31 -> 0.2.32 2024-04-18 18:32:33 +00:00
Fabian Affolter 2e37446ac8 nomore403: init at 1.0.1
Tool to bypass 403/40X response codes

https://github.com/devploit/nomore403
2024-04-18 20:32:26 +02:00
Fabian Affolter 7de6e523c1 gtfocli: init at 0.0.4
GTFO Command Line Interface for search binaries commands to bypass
local security restrictions

https://github.com/cmd-tools/gtfocli
2024-04-18 19:30:51 +02:00
Quantenzitrone 3cbd3952c9
katawa-shoujo-re-engineered: init at 1.4.4 2024-04-18 19:13:05 +02:00
R. Ryantm 62ecfbc332 python312Packages.unearth: 0.15.1 -> 0.15.2 2024-04-18 16:31:31 +00:00
R. Ryantm e99e403188 step-kms-plugin: 0.11.0 -> 0.11.1 2024-04-18 16:16:16 +00:00
Fabian Affolter e3de724ae8 python311Packages.uuid: remove
uuid is a Python standard module
2024-04-18 17:43:41 +02:00
Fabian Affolter 09cd7736d3 python312Packages.proxy-py: 2.4.3 -> 2.4.4rc5
Changelog: https://github.com/abhinavsingh/proxy.py/releases/tag/v2.4.4rc5
2024-04-18 17:34:34 +02:00
Fabian Affolter 0e37b07138 python312Packages.aiozeroconf: format with nixfmt 2024-04-18 17:31:35 +02:00
Fabian Affolter 24cd8745c6 python312Packages.aiozeroconf: refactor 2024-04-18 17:31:35 +02:00
Pol Dellaiera 93a10e1b2d
phpPackages.opentelemetry: fix builds on Darwin
This should fix https://github.com/NixOS/nixpkgs/issues/304809
Issue introduced in a399db4352
2024-04-18 07:32:16 +02:00
Matthias Beyer 2eb341b1ae
mdbook-plantuml: Add myself as maintainer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2024-04-17 20:58:32 +02:00
Matthias Beyer 6232daffad
mdbook-pdf: Add myself as maintainer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2024-04-17 20:58:31 +02:00
Matthias Beyer dee865434d
mdbook-pagetoc: Add myself as maintainer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2024-04-17 20:58:31 +02:00
Matthias Beyer 3ccb50e669
mdbook-mermaid: Add myself as maintainer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2024-04-17 20:58:31 +02:00
Matthias Beyer 6cc546a46d
mdbook-linkcheck: Add myself as maintainer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2024-04-17 20:58:31 +02:00
Matthias Beyer 37549c8aa4
mdbook-kroki-preprocessor: Add myself as maintainer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2024-04-17 20:58:31 +02:00
Matthias Beyer 99aa28fc7c
mdbook-katex: Add myself as maintainer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2024-04-17 20:58:31 +02:00
Matthias Beyer 5eaf1bd4dc
mdbook-i18n-helpers: Add myself as maintainer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2024-04-17 20:58:31 +02:00
Matthias Beyer 20bd41e2ff
mdbook-graphviz: Add myself as maintainer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2024-04-17 20:58:30 +02:00
Matthias Beyer c033203a97
mdbook-footnote: Add myself as maintainer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2024-04-17 20:58:30 +02:00
Matthias Beyer 150357f6af
mdbook-epub: Add myself as maintainer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2024-04-17 20:58:30 +02:00
Matthias Beyer 6cfd88435f
mdbook-emojicodes: Add myself as maintainer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2024-04-17 20:58:30 +02:00
Matthias Beyer a6ed97cc97
mdbook-d2: Add myself as maintainer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2024-04-17 20:58:30 +02:00
Matthias Beyer 5991b254c8
mdbook-cmdrun: Add myself as maintainer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2024-04-17 20:58:30 +02:00
Matthias Beyer e0dac95d02
mdbook-admonish: Add myself as maintainer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2024-04-17 20:58:30 +02:00
Gabriel Volpe 7b687a59cd
lib/tests: apply lints 2024-04-15 19:18:41 +02:00
Gabriel Volpe d864c36d57
tree-wide: use mapCartesianProduct 2024-04-15 19:17:53 +02:00
Gabriel Volpe fe2bead78b
lib/attrsets: introduce mapCartesianProduct 2024-04-15 19:16:15 +02:00
Gabriel Volpe 10517cf9ab
tree-wide: use cartesianProduct 2024-04-15 19:13:22 +02:00
Gabriel Volpe 228621e42d
lib/attrsets: rename cartesianProductOfSets to cartesianProduct 2024-04-15 19:03:54 +02:00
Qusic 399c65ac81 slock: add qusic to maintainers 2024-04-01 16:33:27 +08:00
Qusic 50063d79d5 slock: add updateScript 2024-04-01 16:32:19 +08:00
Emily Trau 31515815da python3Packages.python-i18n: replace use of deprecated assertRaisesRegexp 2024-03-07 12:56:50 +11:00
48 changed files with 377 additions and 166 deletions

View File

@ -5,7 +5,7 @@
let
inherit (builtins) head length;
inherit (lib.trivial) mergeAttrs warn;
inherit (lib.trivial) isInOldestRelease mergeAttrs warn warnIf;
inherit (lib.strings) concatStringsSep concatMapStringsSep escapeNixIdentifier sanitizeDerivationName;
inherit (lib.lists) foldr foldl' concatMap elemAt all partition groupBy take foldl;
in
@ -885,15 +885,15 @@ rec {
# Type
```
cartesianProductOfSets :: AttrSet -> [AttrSet]
cartesianProduct :: AttrSet -> [AttrSet]
```
# Examples
:::{.example}
## `lib.attrsets.cartesianProductOfSets` usage example
## `lib.attrsets.cartesianProduct` usage example
```nix
cartesianProductOfSets { a = [ 1 2 ]; b = [ 10 20 ]; }
cartesianProduct { a = [ 1 2 ]; b = [ 10 20 ]; }
=> [
{ a = 1; b = 10; }
{ a = 1; b = 20; }
@ -904,7 +904,7 @@ rec {
:::
*/
cartesianProductOfSets =
cartesianProduct =
attrsOfLists:
foldl' (listOfAttrs: attrName:
concatMap (attrs:
@ -913,6 +913,40 @@ rec {
) [{}] (attrNames attrsOfLists);
/**
Return the result of function f applied to the cartesian product of attribute set value combinations.
Equivalent to using cartesianProduct followed by map.
# Inputs
`f`
: A function, given an attribute set, it returns a new value.
`attrsOfLists`
: Attribute set with attributes that are lists of values
# Type
```
mapCartesianProduct :: (AttrSet -> a) -> AttrSet -> [a]
```
# Examples
:::{.example}
## `lib.attrsets.mapCartesianProduct` usage example
```nix
mapCartesianProduct ({a, b}: "${a}-${b}") { a = [ "1" "2" ]; b = [ "3" "4" ]; }
=> [ "1-3" "1-4" "2-3" "2-4" ]
```
:::
*/
mapCartesianProduct = f: attrsOfLists: map f (cartesianProduct attrsOfLists);
/**
Utility function that creates a `{name, value}` pair as expected by `builtins.listToAttrs`.
@ -1999,4 +2033,8 @@ rec {
# DEPRECATED
zip = warn
"lib.zip is a deprecated alias of lib.zipAttrsWith." zipAttrsWith;
# DEPRECATED
cartesianProductOfSets = warnIf (isInOldestRelease 2405)
"lib.cartesianProductOfSets is a deprecated alias of lib.cartesianProduct." cartesianProduct;
}

View File

@ -86,8 +86,8 @@ let
zipAttrsWithNames zipAttrsWith zipAttrs recursiveUpdateUntil
recursiveUpdate matchAttrs mergeAttrsList overrideExisting showAttrPath getOutput
getBin getLib getDev getMan chooseDevOutputs zipWithNames zip
recurseIntoAttrs dontRecurseIntoAttrs cartesianProductOfSets
updateManyAttrsByPath;
recurseIntoAttrs dontRecurseIntoAttrs cartesianProduct cartesianProductOfSets
mapCartesianProduct updateManyAttrsByPath;
inherit (self.lists) singleton forEach foldr fold foldl foldl' imap0 imap1
concatMap flatten remove findSingle findFirst any all count
optional optionals toList range replicate partition zipListsWith zipLists

View File

@ -1688,16 +1688,32 @@ rec {
## `lib.lists.crossLists` usage example
```nix
crossLists (x:y: "${toString x}${toString y}") [[1 2] [3 4]]
crossLists (x: y: "${toString x}${toString y}") [[1 2] [3 4]]
=> [ "13" "14" "23" "24" ]
```
The following function call is equivalent to the one deprecated above:
```nix
mapCartesianProduct (x: "${toString x.a}${toString x.b}") { a = [1 2]; b = [3 4]; }
=> [ "13" "14" "23" "24" ]
```
:::
*/
crossLists = warn
"lib.crossLists is deprecated, use lib.cartesianProductOfSets instead."
(f: foldl (fs: args: concatMap (f: map f args) fs) [f]);
''lib.crossLists is deprecated, use lib.mapCartesianProduct instead.
For example, the following function call:
nix-repl> lib.crossLists (x: y: x+y) [[1 2] [3 4]]
[ 4 5 5 6 ]
Can now be replaced by the following one:
nix-repl> lib.mapCartesianProduct ({x,y}: x+y) { x = [1 2]; y = [3 4]; }
[ 4 5 5 6 ]
''
(f: foldl (fs: args: concatMap (f: map f args) fs) [f]);
/**
Remove duplicate elements from the `list`. O(n^2) complexity.

View File

@ -33,7 +33,7 @@ let
boolToString
callPackagesWith
callPackageWith
cartesianProductOfSets
cartesianProduct
cli
composeExtensions
composeManyExtensions
@ -71,10 +71,10 @@ let
makeIncludePath
makeOverridable
mapAttrs
mapCartesianProduct
matchAttrs
mergeAttrs
meta
mkOption
mod
nameValuePair
optionalDrvAttr
@ -117,7 +117,6 @@ let
expr = (builtins.tryEval expr).success;
expected = true;
};
testingDeepThrow = expr: testingThrow (builtins.deepSeq expr expr);
testSanitizeDerivationName = { name, expected }:
let
@ -1415,7 +1414,7 @@ runTests {
};
testToPrettyMultiline = {
expr = mapAttrs (const (generators.toPretty { })) rec {
expr = mapAttrs (const (generators.toPretty { })) {
list = [ 3 4 [ false ] ];
attrs = { foo = null; bar.foo = "baz"; };
newlinestring = "\n";
@ -1429,7 +1428,7 @@ runTests {
there
test'';
};
expected = rec {
expected = {
list = ''
[
3
@ -1467,13 +1466,10 @@ runTests {
expected = "«foo»";
};
testToPlist =
let
deriv = derivation { name = "test"; builder = "/bin/sh"; system = "aarch64-linux"; };
in {
testToPlist = {
expr = mapAttrs (const (generators.toPlist { })) {
value = {
nested.values = rec {
nested.values = {
int = 42;
float = 0.1337;
bool = true;
@ -1686,17 +1682,17 @@ runTests {
};
testCartesianProductOfEmptySet = {
expr = cartesianProductOfSets {};
expr = cartesianProduct {};
expected = [ {} ];
};
testCartesianProductOfOneSet = {
expr = cartesianProductOfSets { a = [ 1 2 3 ]; };
expr = cartesianProduct { a = [ 1 2 3 ]; };
expected = [ { a = 1; } { a = 2; } { a = 3; } ];
};
testCartesianProductOfTwoSets = {
expr = cartesianProductOfSets { a = [ 1 ]; b = [ 10 20 ]; };
expr = cartesianProduct { a = [ 1 ]; b = [ 10 20 ]; };
expected = [
{ a = 1; b = 10; }
{ a = 1; b = 20; }
@ -1704,12 +1700,12 @@ runTests {
};
testCartesianProductOfTwoSetsWithOneEmpty = {
expr = cartesianProductOfSets { a = [ ]; b = [ 10 20 ]; };
expr = cartesianProduct { a = [ ]; b = [ 10 20 ]; };
expected = [ ];
};
testCartesianProductOfThreeSets = {
expr = cartesianProductOfSets {
expr = cartesianProduct {
a = [ 1 2 3 ];
b = [ 10 20 30 ];
c = [ 100 200 300 ];
@ -1753,6 +1749,30 @@ runTests {
];
};
testMapCartesianProductOfOneSet = {
expr = mapCartesianProduct ({a}: a * 2) { a = [ 1 2 3 ]; };
expected = [ 2 4 6 ];
};
testMapCartesianProductOfTwoSets = {
expr = mapCartesianProduct ({a,b}: a + b) { a = [ 1 ]; b = [ 10 20 ]; };
expected = [ 11 21 ];
};
testMapCartesianProcutOfTwoSetsWithOneEmpty = {
expr = mapCartesianProduct (x: x.a + x.b) { a = [ ]; b = [ 10 20 ]; };
expected = [ ];
};
testMapCartesianProductOfThreeSets = {
expr = mapCartesianProduct ({a,b,c}: a + b + c) {
a = [ 1 2 3 ];
b = [ 10 20 30 ];
c = [ 100 200 300 ];
};
expected = [ 111 211 311 121 221 321 131 231 331 112 212 312 122 222 322 132 232 332 113 213 313 123 223 323 133 233 333 ];
};
# The example from the showAttrPath documentation
testShowAttrPathExample = {
expr = showAttrPath [ "foo" "10" "bar" ];

View File

@ -21538,6 +21538,16 @@
fingerprint = "DA03 D6C6 3F58 E796 AD26 E99B 366A 2940 479A 06FC";
}];
};
willbush = {
email = "git@willbush.dev";
matrix = "@willbush:matrix.org";
github = "willbush";
githubId = 2023546;
name = "Will Bush";
keys = [{
fingerprint = "4441 422E 61E4 C8F3 EBFE 5E33 3823 864B 54B1 3BDA";
}];
};
willcohen = {
github = "willcohen";
githubId = 5185341;

View File

@ -284,7 +284,7 @@ in
in
# We will generate every possible pair of WM and DM.
concatLists (
builtins.map
lib.mapCartesianProduct
({dm, wm}: let
sessionName = "${dm.name}${optionalString (wm.name != "none") ("+" + wm.name)}";
script = xsession dm wm;
@ -312,7 +312,7 @@ in
providedSessions = [ sessionName ];
})
)
(cartesianProductOfSets { dm = dms; wm = wms; })
{ dm = dms; wm = wms; }
);
};

View File

@ -5,7 +5,7 @@
let
inherit (import ../lib/testing-python.nix { inherit system pkgs; }) makeTest;
testCombinations = pkgs.lib.cartesianProductOfSets {
testCombinations = pkgs.lib.cartesianProduct {
predictable = [true false];
withNetworkd = [true false];
systemdStage1 = [true false];

View File

@ -0,0 +1,33 @@
{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "gtfocli";
version = "0.0.4";
src = fetchFromGitHub {
owner = "cmd-tools";
repo = "gtfocli";
rev = "refs/tags/${version}";
hash = "sha256-fSk/OyeUffYZOkHXM1m/a9traDxdllYBieMEfsv910Q=";
};
vendorHash = "sha256-yhN2Ve4mBw1HoC3zXYz+M8+2CimLGduG9lGTXi+rPNw=";
ldflags = [
"-s"
"-w"
];
meta = with lib; {
description = "GTFO Command Line Interface for search binaries commands to bypass local security restrictions";
homepage = "https://github.com/cmd-tools/gtfocli";
changelog = "https://github.com/cmd-tools/gtfocli/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
mainProgram = "gtfocli";
};
}

View File

@ -0,0 +1,65 @@
{
lib,
stdenvNoCC,
fetchFromGitea,
makeDesktopItem,
copyDesktopItems,
makeWrapper,
renpy,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "katawa-shoujo-re-engineered";
version = "1.4.4";
src = fetchFromGitea {
# GitHub mirror at fleetingheart/ksre
domain = "codeberg.org";
owner = "fhs";
repo = "katawa-shoujo-re-engineered";
rev = "v${finalAttrs.version}";
hash = "sha256-RYJM/wGVWqIRZzHLUtUZ5mKUrUftDVaOwS1f/EpW6Tk=";
};
desktopItems = [
(makeDesktopItem {
name = "katawa-shoujo-re-engineered";
desktopName = "Katawa Shoujo: Re-Engineered";
type = "Application";
icon = finalAttrs.meta.mainProgram;
categories = [ "Game" ];
exec = finalAttrs.meta.mainProgram;
})
];
nativeBuildInputs = [
makeWrapper
copyDesktopItems
];
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/bin
makeWrapper ${lib.getExe' renpy "renpy"} $out/bin/${finalAttrs.meta.mainProgram} \
--add-flags ${finalAttrs.src} --add-flags run
install -D $src/web-icon.png $out/share/icons/hicolor/512x512/apps/${finalAttrs.meta.mainProgram}.png
runHook postInstall
'';
meta = {
description = "A fan-made modernization of the classic visual novel Katawa Shoujo";
homepage = "https://www.fhs.sh/projects";
license = with lib.licenses; [
# code
mpl20
# assets from the original game
cc-by-nc-nd-30
];
mainProgram = "katawa-shoujo-re-engineered";
maintainers = with lib.maintainers; [ quantenzitrone ];
platforms = renpy.meta.platforms;
};
})

View File

@ -5,13 +5,13 @@
}:
buildGoModule rec {
pname = "nom";
version = "2.1.6";
version = "2.2.1";
src = fetchFromGitHub {
owner = "guyfedwards";
repo = "nom";
rev = "v${version}";
hash = "sha256-NOPzznopH+PeSEMzO1vMHOSbmy9/v2yT4VC4kAsdbGw";
hash = "sha256-AAgkxBbGH45n140jm28+J3hqYxzUIL6IVLGWD9oBexo=";
};
vendorHash = "sha256-fP6yxfIQoVaBC9hYcrCyo3YP3ntEVDbDTwKMO9TdyDI=";

View File

@ -0,0 +1,35 @@
{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "nomore403";
version = "1.0.1";
src = fetchFromGitHub {
owner = "devploit";
repo = "nomore403";
rev = "refs/tags/${version}";
hash = "sha256-qA1i8l2oBQQ5IF8ho3K2k+TAndUTFGwb2NfhyFqfKzU=";
};
vendorHash = "sha256-IGnTbuaQH8A6aKyahHMd2RyFRh4WxZ3Vx/A9V3uelRg=";
ldflags = [
"-s"
"-w"
"-X=main.Version=${version}"
"-X=main.BuildDate=1970-01-01T00:00:00Z"
];
meta = with lib; {
description = "Tool to bypass 403/40X response codes";
homepage = "https://github.com/devploit/nomore403";
changelog = "https://github.com/devploit/nomore403/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
mainProgram = "nomore403";
};
}

View File

@ -63,16 +63,15 @@ in stdenv.mkDerivation {
runHook postCheck
'';
meta = {
meta = with lib; {
description = "Sandboxed execution environment";
homepage = "https://github.com/solo5/solo5";
license = lib.licenses.isc;
maintainers = with lib.maintainers; [ ehmry ];
platforms = builtins.map ({arch, os}: "${arch}-${os}")
(lib.cartesianProductOfSets {
arch = [ "aarch64" "x86_64" ];
os = [ "freebsd" "genode" "linux" "openbsd" ];
});
license = licenses.isc;
maintainers = [ maintainers.ehmry ];
platforms = mapCartesianProduct ({ arch, os }: "${arch}-${os}") {
arch = [ "aarch64" "x86_64" ];
os = [ "freebsd" "genode" "linux" "openbsd" ];
};
};
}

View File

@ -15,14 +15,13 @@ let
'');
in
builtins.listToAttrs (
map
texTest
(lib.attrsets.cartesianProductOfSets {
lib.mapCartesianProduct texTest
{
tex = [ "xelatex" "lualatex" ];
fonttype = [ "ttf" "otf" ];
package = [ "junicode" ];
file = [ ./test.tex ];
})
}
++
[
(texTest {

View File

@ -9,9 +9,8 @@ let
palette = [ "Frappe" "Latte" "Macchiato" "Mocha" ];
color = [ "Blue" "Dark" "Flamingo" "Green" "Lavender" "Light" "Maroon" "Mauve" "Peach" "Pink" "Red" "Rosewater" "Sapphire" "Sky" "Teal" "Yellow" ];
};
product = lib.attrsets.cartesianProductOfSets dimensions;
variantName = { palette, color }: (lib.strings.toLower palette) + color;
variants = map variantName product;
variants = lib.mapCartesianProduct variantName dimensions;
in
stdenvNoCC.mkDerivation rec {
pname = "catppuccin-cursors";

View File

@ -7,14 +7,13 @@ let
thickness = [ "" "Slim_" ]; # Thick or slim edges.
handedness = [ "" "LH_" ]; # Right- or left-handed.
};
product = lib.cartesianProductOfSets dimensions;
variantName =
{ color, opacity, thickness, handedness }:
"${handedness}${opacity}${thickness}${color}";
variants =
# (The order of this list is already good looking enough to show in the
# meta.longDescription.)
map variantName product;
lib.mapCartesianProduct variantName dimensions;
in
stdenvNoCC.mkDerivation rec {
pname = "comixcursors";

View File

@ -70,7 +70,7 @@ stdenv.mkDerivation rec {
maintainers = [ maintainers.sternenseemann ];
homepage = "https://github.com/mirage/ocaml-freestanding";
platforms = builtins.map ({ arch, os }: "${arch}-${os}")
(cartesianProductOfSets {
(cartesianProduct {
arch = [ "aarch64" "x86_64" ];
os = [ "linux" ];
} ++ [

View File

@ -15,6 +15,8 @@ in buildPecl rec {
sourceRoot = "${src.name}/ext";
env.NIX_CFLAGS_COMPILE = "-Wno-parentheses-equality";
doCheck = true;
meta = with lib; {

View File

@ -1,28 +1,35 @@
{ lib
, buildPythonPackage
, fetchPypi
, netifaces
, isPy27
{
lib,
buildPythonPackage,
fetchPypi,
netifaces,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "aiozeroconf";
version = "0.1.8";
format = "setuptools";
disabled = isPy27;
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "074plydm7sd113p3k0siihwwz62d3r42q3g83vqaffp569msknqh";
hash = "sha256-ENupazLlOqfwHugNLEgeTZjPOYxRgznuCKHpU5unlxw=";
};
propagatedBuildInputs = [ netifaces ];
build-system = [ setuptools ];
dependencies = [ netifaces ];
pythonImportsCheck = [ "aiozeroconf" ];
meta = with lib; {
description = "A pure python implementation of multicast DNS service discovery";
mainProgram = "aiozeroconf";
description = "Implementation of multicast DNS service discovery";
homepage = "https://github.com/jstasiak/python-zeroconf";
license = licenses.lgpl21;
license = licenses.lgpl21Only;
maintainers = with maintainers; [ obadz ];
mainProgram = "aiozeroconf";
};
}

View File

@ -12,7 +12,7 @@
buildPythonPackage rec {
pname = "dirigera";
version = "1.1.2";
version = "1.1.4";
pyproject = true;
disabled = pythonOlder "3.7";
@ -21,7 +21,7 @@ buildPythonPackage rec {
owner = "Leggin";
repo = "dirigera";
rev = "refs/tags/v${version}";
hash = "sha256-EOnhkfU6DC0IfroHR8O45eNxIyyNS81Z/ptSViqyThU=";
hash = "sha256-60DLNp3mM4LpnmM98JVcKlOxj20jvtsBnYq7tL4WEW8=";
};
build-system = [ setuptools ];

View File

@ -11,14 +11,14 @@
buildPythonPackage rec {
pname = "green";
version = "4.0.1";
version = "4.0.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-O178HRtyKg/2fYD9jHzfbUfNGPlRpGuEvbx7H7yr0/w=";
hash = "sha256-pAZ8P5/CpkTtNfU2ZJUGQzROxGLm0uu1vXS3YpcVprE=";
};
patches = [

View File

@ -8,14 +8,14 @@
buildPythonPackage rec {
pname = "ipyvue";
version = "1.10.2";
version = "1.11.0";
format = "setuptools";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
hash = "sha256-qZc1hvouKWUQ2aJLk1oiokUKzKBXtd6fC6tm7LHDOrQ=";
hash = "sha256-ez2ygBvgU12FX/+qDkARlizq50rEgZYp4UH5Sx4E2QA=";
};
propagatedBuildInputs = [ ipywidgets ];

View File

@ -5,7 +5,7 @@
buildPythonPackage rec {
pname = "itemdb";
version = "1.1.2";
version = "1.2.0";
format = "setuptools";
# PyPI tarball doesn't include tests directory
@ -13,7 +13,7 @@ buildPythonPackage rec {
owner = "almarklein";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "sha256-s7a+MJLTAcGv2rYRMO2SAlsDYen6Si10qUQOVDFuf6c=";
sha256 = "sha256-egxQ1tGC6R5p1stYm4r05+b2HkuT+nBySTZPGqeAbSE=";
};
meta = with lib; {

View File

@ -11,7 +11,7 @@
buildPythonPackage rec {
pname = "jupyter-server-fileid";
version = "0.9.1";
version = "0.9.2";
disables = pythonOlder "3.7";
@ -21,7 +21,7 @@ buildPythonPackage rec {
owner = "jupyter-server";
repo = "jupyter_server_fileid";
rev = "refs/tags/v${version}";
hash = "sha256-rEjrfioAmqijyObiK7CMLWhLqVpfcmNYhjdjKjkMp6s=";
hash = "sha256-ApCDBVjJqpkC5FGEjU/LxwWBunTkL6i5Ki85M6MMLE0=";
};
nativeBuildInputs = [

View File

@ -1,26 +1,31 @@
{ lib
, stdenv
, bash
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, gnumake
, httpx
, openssl
, paramiko
, pytest-asyncio
, pytest-mock
, pytestCheckHook
, pythonOlder
, setuptools-scm
, typing-extensions
, wheel
{
lib,
stdenv,
bash,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
gnumake,
h2,
hpack,
httpx,
hyperframe,
openssl,
paramiko,
pytest-asyncio,
pytest-mock,
pytest-xdist,
pytestCheckHook,
pythonOlder,
requests,
setuptools-scm,
typing-extensions,
}:
buildPythonPackage rec {
pname = "proxy-py";
version = "2.4.3";
format = "pyproject";
version = "2.4.4rc5";
pyproject = true;
disabled = pythonOlder "3.7";
@ -28,51 +33,37 @@ buildPythonPackage rec {
owner = "abhinavsingh";
repo = "proxy.py";
rev = "refs/tags/v${version}";
hash = "sha256-dA7a9RicBFCSf6IoGX/CdvI8x/xMOFfNtyuvFn9YmHI=";
hash = "sha256-ngIskWzN6699C0WjSX/ZbHxV3Eb8ikQPNYZFzfzt7xU=";
};
patches = [
# this patch is so that the one following it applies cleanly
# https://github.com/abhinavsingh/proxy.py/pull/1209
(fetchpatch {
name = "update-build-dependencies.patch";
url = "https://github.com/abhinavsingh/proxy.py/commit/2e535360ce5ed9734f2c00dc6aefe5ebd281cea5.patch";
hash = "sha256-eR3R4M7jwQMnY5ob0V6G71jXcrkV7YZvo1JOUG4gnrY=";
})
# https://github.com/abhinavsingh/proxy.py/pull/1345
(fetchpatch {
name = "remove-setuptools-scm-git-archive-dependency.patch";
url = "https://github.com/abhinavsingh/proxy.py/commit/027bfa6b912745f588d272f1a1082f6ca416f815.patch";
hash = "sha256-O2LlSrSrB3u2McAZRY+KviuU7Hv1tOuf0n+D/H4BWvI=";
})
];
postPatch = ''
substituteInPlace Makefile \
--replace "SHELL := /bin/bash" "SHELL := ${bash}/bin/bash"
substituteInPlace pytest.ini \
--replace "-p pytest_cov" "" \
--replace "--no-cov-on-fail" ""
--replace-fail "-p pytest_cov" "" \
--replace-fail "--no-cov-on-fail" ""
sed -i "/--cov/d" pytest.ini
'';
nativeBuildInputs = [
setuptools-scm
wheel
];
build-system = [ setuptools-scm ];
propagatedBuildInputs = [
dependencies = [
paramiko
typing-extensions
];
nativeCheckInputs = [
httpx
openssl
gnumake
h2
hpack
httpx
hyperframe
openssl
pytest-asyncio
pytest-mock
pytest-xdist
pytestCheckHook
requests
];
preCheck = ''
@ -81,14 +72,17 @@ buildPythonPackage rec {
disabledTests = [
# Test requires network access
"test_http2_via_proxy"
"http"
"http2"
"proxy"
"web_server"
# Location is not writable
"test_gen_csr"
# Tests run into a timeout
"integration"
];
pythonImportsCheck = [
"proxy"
];
pythonImportsCheck = [ "proxy" ];
meta = with lib; {
description = "Python proxy framework";

View File

@ -7,14 +7,20 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "danhper";
repo = pname;
repo = "python-i18n";
rev = "v${version}";
sha256 = "6FahoHZqaOWYGaT9RqLARCm2kLfUIlYuauB6+0eX7jA=";
};
nativeCheckInputs = [ pytestCheckHook pyyaml ];
# Replace use of deprecated assertRaisesRegexp
postPatch = ''
substituteInPlace i18n/tests/loader_tests.py \
--replace-fail assertRaisesRegexp assertRaisesRegex
'';
nativeCheckInputs = [ pytestCheckHook pyyaml ];
pytestFlagsArray = [ "i18n/tests/run_tests.py" ];
pythonImportsCheck = [ "i18n" ];
meta = with lib; {
description = "Easy to use i18n library";

View File

@ -15,14 +15,14 @@
buildPythonPackage rec {
pname = "unearth";
version = "0.15.1";
version = "0.15.2";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-hj3rMznA1lpb4NCtLGfUbV9XSnmOdO8FUr8R0pijCrs=";
hash = "sha256-OB8+aWnbCyjZ/C+/shaGBXm/NBvWlUcvLGLivM6ebT0=";
};
build-system = [

View File

@ -1,17 +0,0 @@
{ lib, buildPythonPackage, fetchPypi }:
buildPythonPackage rec {
pname = "uuid";
version = "1.30";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "0gqrjsm85nnkxkmd1vk8350wqj2cigjflnvcydk084n5980cr1qz";
};
meta = with lib; {
description = "UUID object and generation functions (Python 2.3 or higher)";
homepage = "http://zesty.ca/python/";
};
}

View File

@ -9,14 +9,14 @@
rustPlatform.buildRustPackage rec {
pname = "cargo-show-asm";
version = "0.2.31";
version = "0.2.32";
src = fetchCrate {
inherit pname version;
hash = "sha256-TjkEzqGFqhVKMmZEcwAoDnHOZWi7+wha228loJjLxgQ=";
hash = "sha256-4pMIL/wru9uE8Uyp/qvmo6IJxFcB0HLUHRSSV6DoI3g=";
};
cargoHash = "sha256-oUfBpx/hElXMw58Dj09JeG2FKy+biFt+4pb4pYNidxc=";
cargoHash = "sha256-N1NZONY8y88diAbWn+UaSHGpd4r7naxFWVmCyJkL3tQ=";
nativeBuildInputs = [
installShellFiles

View File

@ -2,7 +2,10 @@
, xorgproto, libX11, libXext, libXrandr, libxcrypt
# default header can be obtained from
# https://git.suckless.org/slock/tree/config.def.h
, conf ? null }:
, conf ? null
# update script dependencies
, gitUpdater
}:
stdenv.mkDerivation (finalAttrs: {
pname = "slock";
@ -25,6 +28,10 @@ stdenv.mkDerivation (finalAttrs: {
makeFlags = [ "CC:=$(CC)" ];
passthru.updateScript = gitUpdater {
url = "git://git.suckless.org/slock";
};
meta = with lib; {
homepage = "https://tools.suckless.org/slock";
description = "Simple X display locker";
@ -33,7 +40,7 @@ stdenv.mkDerivation (finalAttrs: {
Simple X display locker. This is the simplest X screen locker.
'';
license = licenses.mit;
maintainers = with maintainers; [ astsmtl ];
maintainers = with maintainers; [ astsmtl qusic ];
platforms = platforms.linux;
};
})

View File

@ -18,11 +18,11 @@ lua = luajitPackages;
unwrapped = stdenv.mkDerivation rec {
pname = "knot-resolver";
version = "5.7.1";
version = "5.7.2";
src = fetchurl {
url = "https://secure.nic.cz/files/knot-resolver/${pname}-${version}.tar.xz";
sha256 = "da14b415c61d53747a991f12d6209367ef826a13dc6bf4eeaf5d88760294c3a2";
hash = "sha256-X2oic5D81MLQqAKKZStVqdhj7HvgEpj+A43x0nP7mg8=";
};
outputs = [ "out" "dev" ];

View File

@ -11,16 +11,16 @@
buildGoModule rec {
pname = "step-kms-plugin";
version = "0.11.0";
version = "0.11.1";
src = fetchFromGitHub {
owner = "smallstep";
repo = pname;
rev = "v${version}";
hash = "sha256-FQ9UW1zz+8HMFETZVef7oyh2+Nm5z3ksvmOv/MTiKAU=";
hash = "sha256-EkLLhHXvh10tfEY6AY6o3n3JcmCXwauHsQ8VJRBpnnY=";
};
vendorHash = "sha256-bpQHe7B7dG1oeGP/V3su0Zc6in7tive7lmh18KqxGfo=";
vendorHash = "sha256-kwM5eNeAVtA6DaoFtBhxc7Jnfb7vVkdIGpUxVGjWwC8=";
proxyVendor = true;

View File

@ -19,7 +19,7 @@ rustPlatform.buildRustPackage rec {
description = "A preprocessor for mdbook to add Material Design admonishments";
mainProgram = "mdbook-admonish";
license = licenses.mit;
maintainers = with maintainers; [ jmgilman Frostman ];
maintainers = with maintainers; [ jmgilman Frostman matthiasbeyer ];
homepage = "https://github.com/tommilligan/mdbook-admonish";
};
}

View File

@ -22,6 +22,6 @@ rustPlatform.buildRustPackage rec {
mainProgram = "mdbook-cmdrun";
homepage = "https://github.com/FauconFan/mdbook-cmdrun";
license = licenses.mit;
maintainers = with maintainers; [ pinpox ];
maintainers = with maintainers; [ pinpox matthiasbeyer ];
};
}

View File

@ -29,6 +29,6 @@ rustPlatform.buildRustPackage rec {
homepage = "https://github.com/danieleades/mdbook-d2";
changelog = "https://github.com/danieleades/mdbook-d2/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ blaggacao ];
maintainers = with maintainers; [ blaggacao matthiasbeyer ];
};
}

View File

@ -28,6 +28,6 @@ rustPlatform.buildRustPackage rec {
homepage = "https://github.com/blyxyas/mdbook-emojicodes";
changelog = "https://github.com/blyxyas/mdbook-emojicodes/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ blaggacao ];
maintainers = with maintainers; [ blaggacao matthiasbeyer ];
};
}

View File

@ -37,6 +37,6 @@ in rustPlatform.buildRustPackage {
mainProgram = "mdbook-epub";
homepage = "https://michael-f-bryan.github.io/mdbook-epub";
license = licenses.mpl20;
maintainers = with maintainers; [ yuu ];
maintainers = with maintainers; [ yuu matthiasbeyer ];
};
}

View File

@ -24,6 +24,6 @@ rustPlatform.buildRustPackage rec {
mainProgram = "mdbook-footnote";
homepage = "https://github.com/daviddrysdale/mdbook-footnote";
license = licenses.asl20;
maintainers = with maintainers; [ brianmcgillion ];
maintainers = with maintainers; [ brianmcgillion matthiasbeyer ];
};
}

View File

@ -23,6 +23,6 @@ rustPlatform.buildRustPackage rec {
homepage = "https://github.com/dylanowen/mdbook-graphviz";
changelog = "https://github.com/dylanowen/mdbook-graphviz/releases/tag/v${version}";
license = [ licenses.mpl20 ];
maintainers = with maintainers; [ lovesegfault ];
maintainers = with maintainers; [ lovesegfault matthiasbeyer ];
};
}

View File

@ -22,6 +22,6 @@ rustPlatform.buildRustPackage rec {
homepage = "https://github.com/google/mdbook-i18n-helpers";
changelog = "https://github.com/google/mdbook-i18n-helpers/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ teutat3s ];
maintainers = with maintainers; [ teutat3s matthiasbeyer ];
};
}

View File

@ -18,6 +18,6 @@ rustPlatform.buildRustPackage rec {
mainProgram = "mdbook-katex";
homepage = "https://github.com/lzanini/${pname}";
license = [ licenses.mit ];
maintainers = with maintainers; [ lovesegfault ];
maintainers = with maintainers; [ lovesegfault matthiasbeyer ];
};
}

View File

@ -36,6 +36,6 @@ rustPlatform.buildRustPackage rec {
mainProgram = "mdbook-kroki-preprocessor";
homepage = "https://github.com/joelcourtney/mdbook-kroki-preprocessor";
license = licenses.gpl3Only;
maintainers = with maintainers; [ blaggacao ];
maintainers = with maintainers; [ blaggacao matthiasbeyer ];
};
}

View File

@ -29,6 +29,6 @@ rustPlatform.buildRustPackage rec {
mainProgram = "mdbook-linkcheck";
homepage = "https://github.com/Michael-F-Bryan/mdbook-linkcheck";
license = licenses.mit;
maintainers = with maintainers; [ zhaofengli ];
maintainers = with maintainers; [ zhaofengli matthiasbeyer ];
};
}

View File

@ -28,6 +28,6 @@ rustPlatform.buildRustPackage rec {
homepage = "https://github.com/badboy/mdbook-mermaid";
changelog = "https://github.com/badboy/mdbook-mermaid/blob/v${version}/CHANGELOG.md";
license = licenses.mpl20;
maintainers = with maintainers; [ xrelkd ];
maintainers = with maintainers; [ xrelkd matthiasbeyer ];
};
}

View File

@ -18,6 +18,6 @@ rustPlatform.buildRustPackage rec {
mainProgram = "mdbook-pagetoc";
homepage = "https://github.com/slowsage/mdbook-pagetoc";
license = licenses.mit;
maintainers = with maintainers; [ blaggacao ];
maintainers = with maintainers; [ blaggacao matthiasbeyer ];
};
}

View File

@ -48,6 +48,6 @@ rustPlatform.buildRustPackage rec {
homepage = "https://github.com/HollowMan6/mdbook-pdf";
changelog = "https://github.com/HollowMan6/mdbook-pdf/releases/tag/v${version}";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ hollowman6 ];
maintainers = with maintainers; [ hollowman6 matthiasbeyer ];
};
}

View File

@ -40,6 +40,6 @@ rustPlatform.buildRustPackage rec {
mainProgram = "mdbook-plantuml";
homepage = "https://github.com/sytsereitsma/mdbook-plantuml";
license = [ licenses.mit ];
maintainers = with maintainers; [ jcouyang ];
maintainers = with maintainers; [ jcouyang matthiasbeyer ];
};
}

View File

@ -518,6 +518,7 @@ mapAliases ({
update_checker = update-checker; # added 2024-01-07
uproot3 = throw "uproot3 has been removed, use uproot instead"; # added 2022-12-13
uproot3-methods = throw "uproot3-methods has been removed"; # added 2022-12-13
uuid = throw "uuid is a Python standard module"; # added 2024-04-18
validictory = throw "validictory has been removed, since it abandoned"; # added 2023-07-07
vega_datasets = vega-datasets; # added 2023-11-04
ViennaRNA = viennarna; # added 2023-08-23

View File

@ -16441,8 +16441,6 @@ self: super: with self; {
utils = callPackage ../development/python-modules/utils { };
uuid = callPackage ../development/python-modules/uuid { };
uvcclient = callPackage ../development/python-modules/uvcclient { };
uvicorn = callPackage ../development/python-modules/uvicorn { };