From 66404f9d37d106f82df3155d26315988ac45fe5b Mon Sep 17 00:00:00 2001 From: Alex Martens Date: Mon, 27 Dec 2021 08:22:50 -0800 Subject: [PATCH 01/40] cargo-spellcheck: 0.8.14 -> 0.9.6 --- pkgs/development/tools/rust/cargo-spellcheck/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/rust/cargo-spellcheck/default.nix b/pkgs/development/tools/rust/cargo-spellcheck/default.nix index 43571a26ab6f..8e6e9459aab0 100644 --- a/pkgs/development/tools/rust/cargo-spellcheck/default.nix +++ b/pkgs/development/tools/rust/cargo-spellcheck/default.nix @@ -8,21 +8,23 @@ rustPlatform.buildRustPackage rec { pname = "cargo-spellcheck"; - version = "0.8.14"; + version = "0.9.6"; src = fetchFromGitHub { owner = "drahnr"; repo = pname; rev = "v${version}"; - sha256 = "11r4gzcsbqlflam2rdixc451qw69c46mkf7g0slq6f127is25fgz"; + sha256 = "0brrpcnsphvl1qn8myrzan0k87ph629gcj6zd54ym9f67qg2nri1"; }; - cargoSha256 = "1p4iirblk6idvfhn8954v8lbxlzj0gbd8fv4wq03hfrdqisjqcsn"; + cargoSha256 = "0d0adpgf0j8xvw0dm3gcd6lnksn6p5rz3limc038fg8k84zf7cdb"; buildInputs = lib.optional stdenv.isDarwin Security; LIBCLANG_PATH = "${libclang.lib}/lib"; + preCheck = "HOME=$(mktemp -d)"; + checkFlags = [ "--skip checker::hunspell::tests::hunspell_binding_is_sane" ]; From c749d3a90dd12d35acf33727586ed456dfc9ef7c Mon Sep 17 00:00:00 2001 From: Elliot Xu Date: Tue, 28 Dec 2021 10:05:56 +0800 Subject: [PATCH 02/40] maintainers: add elliot --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 531ef4bdc2b7..aabf601e3c0c 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -3395,6 +3395,12 @@ githubId = 103082; name = "Ed Brindley"; }; + elliot = { + email = "hack00mind@gmail.com"; + github = "Eliot00"; + githubId = 18375468; + name = "Elliot Xu"; + }; elliottvillars = { email = "elliottvillars@gmail.com"; github = "elliottvillars"; From a8b67b4f5d5b213e3aa83a8d0b79d78d8b1fbf44 Mon Sep 17 00:00:00 2001 From: Sibi Prabakaran Date: Tue, 21 Dec 2021 11:16:28 +0530 Subject: [PATCH 03/40] kubergrunt: init at 0.7.11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a helper utility which allows to configure EKS clusters etc. Tested it locally on a NixOS machine: ``` shellsession ❯ kubergrunt help Usage: kubergrunt [--loglevel] [--help] command [options] [args] A CLI tool to help setup and manage a Kubernetes cluster. Commands: eks Helper commands to configure EKS. k8s Helper scripts for managing Kubernetes resources directly. tls Helper commands to manage TLS certificate key pairs as Kubernetes Secrets. help, h Shows a list of commands or help for one command ``` --- .../networking/cluster/kubergrunt/default.nix | 33 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/applications/networking/cluster/kubergrunt/default.nix diff --git a/pkgs/applications/networking/cluster/kubergrunt/default.nix b/pkgs/applications/networking/cluster/kubergrunt/default.nix new file mode 100644 index 000000000000..733bb3c59412 --- /dev/null +++ b/pkgs/applications/networking/cluster/kubergrunt/default.nix @@ -0,0 +1,33 @@ +{ buildGoModule, lib, fetchFromGitHub }: + +buildGoModule rec { + pname = "kubergrunt"; + version = "0.7.11"; + + src = fetchFromGitHub { + owner = "gruntwork-io"; + repo = "kubergrunt"; + rev = "v${version}"; + sha256 = "1224ssqdz9ak0vylyfbr9c2w0yfdp4hw9jh99qmfi2j5nhw9kzcc"; + }; + + vendorSha256 = "1hbb3hn8mzz9h9p1rl35izz3l6c2rqsg8aq6dgpbpsf5krp3zs3v"; + + # Disable tests since it requires network access and relies on the + # presence of certain AWS infrastructure + doCheck = false; + + runVend = true; + + postInstall = '' + # The binary is named kubergrunt + mv $out/bin/cmd $out/bin/kubergrunt + ''; + + meta = with lib; { + description = "Collection of commands to fill in the gaps between Terraform, Helm, and Kubectl"; + homepage = "https://github.com/gruntwork-io/kubergrunt"; + license = licenses.asl20; + maintainers = with maintainers; [ psibi ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 706bb66d6a8f..8ddd7beeaaa6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6906,6 +6906,8 @@ with pkgs; kubepug = callPackage ../development/tools/kubepug { }; + kubergrunt = callPackage ../applications/networking/cluster/kubergrunt { }; + kwalletcli = libsForQt5.callPackage ../tools/security/kwalletcli { }; peruse = libsForQt5.callPackage ../tools/misc/peruse { }; From 3424929e0fdf9aead1d47e26275cbb3069de0d5b Mon Sep 17 00:00:00 2001 From: ElXreno Date: Tue, 28 Dec 2021 09:52:56 +0300 Subject: [PATCH 04/40] ddnet: 15.7 -> 15.8 --- pkgs/games/ddnet/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/games/ddnet/default.nix b/pkgs/games/ddnet/default.nix index 6eada3412b3f..eca0d10d7f98 100644 --- a/pkgs/games/ddnet/default.nix +++ b/pkgs/games/ddnet/default.nix @@ -20,13 +20,13 @@ stdenv.mkDerivation rec { pname = "ddnet"; - version = "15.7"; + version = "15.8"; src = fetchFromGitHub { owner = "ddnet"; repo = pname; rev = version; - sha256 = "sha256-SrD2rwV/8RnE5HvYSN51fsjZ3lAJwmDiyr/ywDK1TT4="; + sha256 = "sha256-segJVGH5ngSEhk0EpLHPORTNck4tIDCxJh9Ri6sa2dE="; }; nativeBuildInputs = [ cmake ninja pkg-config ]; From c3928d527cc4927e24430a495a803666e74055a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 27 Dec 2021 22:46:45 +0000 Subject: [PATCH 05/40] python39Packages.argh: fix tests --- .../python-modules/argh/default.nix | 32 ++++++++++++------- 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/argh/default.nix b/pkgs/development/python-modules/argh/default.nix index bbe120ec14fe..fd9ff184000f 100644 --- a/pkgs/development/python-modules/argh/default.nix +++ b/pkgs/development/python-modules/argh/default.nix @@ -1,11 +1,10 @@ { lib , buildPythonPackage , fetchPypi -, pytest -, py -, mock -, glibcLocales +, fetchpatch , iocapture +, mock +, pytestCheckHook }: buildPythonPackage rec { @@ -17,18 +16,27 @@ buildPythonPackage rec { sha256 = "e9535b8c84dc9571a48999094fda7f33e63c3f1b74f3e5f3ac0105a58405bb65"; }; - checkInputs = [ pytest py mock glibcLocales iocapture ]; + patches = [ + # https://github.com/neithere/argh/issues/148 + (fetchpatch { + name = "argh-0.26.2-fix-py3.9-msgs.patch"; + url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/dev-python/argh/files/argh-0.26.2-fix-py3.9-msgs.patch?id=6f194f12a2e30aad7da347848f7b0187e188f983"; + sha256 = "nBmhF2PXVeS7cBNujzip6Bb601LRHrjmhlGKFr/++Oo="; + }) + ]; - checkPhase = '' - export LANG="en_US.UTF-8" - py.test - ''; + checkInputs = [ + iocapture + mock + pytestCheckHook + ]; + + pythonImportsCheck = [ "argh" ]; meta = with lib; { - homepage = "https://github.com/neithere/argh/"; + homepage = "https://github.com/neithere/argh"; description = "An unobtrusive argparse wrapper with natural syntax"; - license = licenses.lgpl2; + license = licenses.lgpl3Plus; maintainers = with maintainers; [ domenkozar ]; }; - } From 957f1f72439dc987afb4c76358a93aaa1094fd04 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 28 Dec 2021 01:56:45 +0100 Subject: [PATCH 06/40] barman: drop argh dependency It is not required anymore and breaks the package with argh being broken. --- pkgs/tools/misc/barman/default.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/pkgs/tools/misc/barman/default.nix b/pkgs/tools/misc/barman/default.nix index c9a561c8729f..699a38f3a879 100644 --- a/pkgs/tools/misc/barman/default.nix +++ b/pkgs/tools/misc/barman/default.nix @@ -20,7 +20,6 @@ python3Packages.buildPythonApplication rec { propagatedBuildInputs = with python3Packages; [ argcomplete - argh azure-identity azure-storage-blob boto3 From d7d609790a94b3b5f7a2c6107b151264f6d83b2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Tue, 28 Dec 2021 09:35:57 +0000 Subject: [PATCH 07/40] yrd: use python3 --- pkgs/tools/networking/yrd/default.nix | 28 ++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/pkgs/tools/networking/yrd/default.nix b/pkgs/tools/networking/yrd/default.nix index 75a89b859fe8..1aace6aefbb5 100644 --- a/pkgs/tools/networking/yrd/default.nix +++ b/pkgs/tools/networking/yrd/default.nix @@ -1,27 +1,37 @@ -{ lib, fetchFromGitHub, pythonPackages }: +{ lib +, python3 +, fetchFromGitHub +}: -let +python3.pkgs.buildPythonApplication rec { pname = "yrd"; version = "0.5.3"; - sha256 = "1yx1hr8z4cvlb3yi24dwafs0nxq41k4q477jc9q24w61a0g662ps"; - -in pythonPackages.buildPythonApplication { - name = "${pname}-${version}"; src = fetchFromGitHub { owner = "kpcyrd"; repo = pname; rev = "v${version}"; - inherit sha256; + sha256 = "1yx1hr8z4cvlb3yi24dwafs0nxq41k4q477jc9q24w61a0g662ps"; }; - propagatedBuildInputs = with pythonPackages; [ argh ]; + propagatedBuildInputs = with python3.pkgs; [ + argh + requests + ]; + + checkInputs = with python3.pkgs; [ + nose + ]; + + checkPhase = '' + nosetests -v yrd + ''; meta = with lib; { description = "Cjdns swiss army knife"; maintainers = with maintainers; [ akru ]; platforms = platforms.linux; - license = licenses.gpl3; + license = licenses.gpl3Only; homepage = "https://github.com/kpcyrd/yrd"; }; } From 793050f2c9974406f3ea09a662a6667864a9ff21 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Tue, 28 Dec 2021 12:16:12 +0100 Subject: [PATCH 08/40] pirate-get: 0.4.0 -> 0.4.1 --- pkgs/tools/networking/pirate-get/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/networking/pirate-get/default.nix b/pkgs/tools/networking/pirate-get/default.nix index dc9133229af7..112b78dcae8b 100644 --- a/pkgs/tools/networking/pirate-get/default.nix +++ b/pkgs/tools/networking/pirate-get/default.nix @@ -4,11 +4,11 @@ with python3Packages; buildPythonApplication rec { pname = "pirate-get"; - version = "0.4.0"; + version = "0.4.1"; src = fetchPypi { inherit pname version; - sha256 = "07s5ss9dxccx1mip7pyga1fagywkqchxmzz55ng47ac9053ffxkq"; + sha256 = "0pr703fwinr2f4rba86zp57mpf5j2jgvp5n50rc5vy5g7yfwsddm"; }; propagatedBuildInputs = [ colorama veryprettytable pyperclip ]; From 60dc767577bb36b4d9967a4731c8fa34f9718c0b Mon Sep 17 00:00:00 2001 From: Nicolas Benes Date: Mon, 27 Dec 2021 23:48:28 +0100 Subject: [PATCH 09/40] gramps: fix map view --- pkgs/applications/misc/gramps/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/misc/gramps/default.nix b/pkgs/applications/misc/gramps/default.nix index b22a09691bb3..531ce4237371 100644 --- a/pkgs/applications/misc/gramps/default.nix +++ b/pkgs/applications/misc/gramps/default.nix @@ -1,7 +1,7 @@ { lib, fetchFromGitHub, gtk3, pythonPackages, intltool, gexiv2, pango, gobject-introspection, wrapGAppsHook, gettext, # Optional packages: - enableOSM ? true, osm-gps-map, + enableOSM ? true, osm-gps-map, glib-networking, enableGraphviz ? true, graphviz, enableGhostscript ? true, ghostscript }: @@ -15,7 +15,7 @@ in buildPythonApplication rec { nativeBuildInputs = [ wrapGAppsHook intltool gettext ]; buildInputs = [ gtk3 gobject-introspection pango gexiv2 ] # Map support - ++ lib.optional enableOSM osm-gps-map + ++ lib.optionals enableOSM [ osm-gps-map glib-networking ] # Graphviz support ++ lib.optional enableGraphviz graphviz # Ghostscript support From 4a578ce6595a744527cf0cae9a16223ce4022a54 Mon Sep 17 00:00:00 2001 From: Elliot Xu Date: Tue, 28 Dec 2021 17:06:04 +0800 Subject: [PATCH 10/40] quake: init at 0.3.0 Update pkgs/applications/misc/inherd-quake/default.nix Co-authored-by: Bobby Rong Update pkgs/applications/misc/inherd-quake/default.nix Co-authored-by: Bobby Rong Update pkgs/applications/misc/inherd-quake/default.nix Co-authored-by: Bobby Rong Update pkgs/applications/misc/inherd-quake/default.nix Co-authored-by: Bobby Rong --- .../misc/inherd-quake/default.nix | 39 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++ 2 files changed, 43 insertions(+) create mode 100644 pkgs/applications/misc/inherd-quake/default.nix diff --git a/pkgs/applications/misc/inherd-quake/default.nix b/pkgs/applications/misc/inherd-quake/default.nix new file mode 100644 index 000000000000..2a8d04daa0c3 --- /dev/null +++ b/pkgs/applications/misc/inherd-quake/default.nix @@ -0,0 +1,39 @@ +{ lib +, fetchFromGitHub +, rustPlatform +, pkg-config +, openssl +, stdenv +, CoreServices +, Security +}: + +rustPlatform.buildRustPackage rec { + pname = "quake"; + version = "0.3.0"; + + src = fetchFromGitHub { + owner = "phodal"; + repo = pname; + rev = "v${version}"; + sha256 = "1f7k68g18g3dpnrsmhgmz753bly1i3f4lmsljiyp9ap0c6w8ahgg"; + }; + + cargoSha256 = "1yqj9rq770j116138bqn4ycggy13vvym1cz50myfddb9rjjzafrl"; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ + openssl + ] ++ lib.optionals stdenv.isDarwin [ + CoreServices + Security + ]; + + meta = with lib; { + description = "A knowledge management meta-framework for geeks"; + homepage = "https://github.com/phodal/quake"; + license = licenses.mit; + maintainers = [ maintainers.elliot ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 04b976989d40..7282bc941e64 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1915,6 +1915,10 @@ with pkgs; passExtensions = recurseIntoAttrs pass.extensions; + inherd-quake = callPackage ../applications/misc/inherd-quake { + inherit (darwin.apple_sdk.frameworks) CoreServices Security; + }; + xjadeo = callPackage ../tools/video/xjadeo { }; asc-key-to-qr-code-gif = callPackage ../tools/security/asc-key-to-qr-code-gif { }; From 06dff25d723566dbe6da7878b9c2eb3022da75a7 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 27 Dec 2021 23:36:47 +0100 Subject: [PATCH 11/40] python3Packages.zeroconf: 0.37.0 -> 0.38.1 --- pkgs/development/python-modules/zeroconf/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/zeroconf/default.nix b/pkgs/development/python-modules/zeroconf/default.nix index a29a4bc8b1a8..12e0279eb3de 100644 --- a/pkgs/development/python-modules/zeroconf/default.nix +++ b/pkgs/development/python-modules/zeroconf/default.nix @@ -10,16 +10,16 @@ buildPythonPackage rec { pname = "zeroconf"; - version = "0.37.0"; + version = "0.38.1"; format = "setuptools"; - disabled = pythonOlder "3.6"; + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "jstasiak"; repo = "python-zeroconf"; rev = version; - sha256 = "sha256-KdcRG1YKtvhcqq/FNiOVQeXlyYepvPjRL5EZJA8Axyk="; + sha256 = "sha256-8bJEH+m+83rkKdN5GjD4THs1CUy/wstoBFiXR7kHKtw="; }; propagatedBuildInputs = [ From 1986e42647c68a9819d3fe45019c0b2a34409ad7 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 27 Dec 2021 23:37:30 +0100 Subject: [PATCH 12/40] python3Packages.youless-api: 0.15 -> 0.16 --- pkgs/development/python-modules/youless-api/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/youless-api/default.nix b/pkgs/development/python-modules/youless-api/default.nix index 07b033433864..94580fbebbfd 100644 --- a/pkgs/development/python-modules/youless-api/default.nix +++ b/pkgs/development/python-modules/youless-api/default.nix @@ -13,7 +13,7 @@ buildPythonPackage rec { pname = "youless-api"; - version = "0.15"; + version = "0.16"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -22,7 +22,7 @@ buildPythonPackage rec { owner = "jongsoftdev"; repo = "youless-python-bridge"; rev = version; - sha256 = "sha256-77uQUAPDCFQiCpNAI0feOtHq82sE0n70IV1Njn/W29M="; + sha256 = "sha256-8pJeb3eWchMRrk8KLSI/EbHs1wQDqBoqlAQXm9ulyqs="; }; propagatedBuildInputs = [ From 008b48e783f9d7621acbb1cae588f7dcc4fba455 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 27 Dec 2021 23:37:55 +0100 Subject: [PATCH 13/40] python3Packages.roombapy: 1.6.4 -> 1.6.5 --- pkgs/development/python-modules/roombapy/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/roombapy/default.nix b/pkgs/development/python-modules/roombapy/default.nix index cc73e58fc7b8..2a97993669f1 100644 --- a/pkgs/development/python-modules/roombapy/default.nix +++ b/pkgs/development/python-modules/roombapy/default.nix @@ -11,7 +11,7 @@ buildPythonPackage rec { pname = "roombapy"; - version = "1.6.4"; + version = "1.6.5"; format = "pyproject"; disabled = pythonOlder "3.7"; @@ -20,7 +20,7 @@ buildPythonPackage rec { owner = "pschmitt"; repo = "roombapy"; rev = version; - sha256 = "sha256-EN+em+lULAUplXlhcU409ZVPk9BfMmD2oNwO0ETuqoA="; + sha256 = "sha256-Xjeh29U+FCzI5n/i5s6wC0B88Ktmb8pnNDdOzCiKWi4="; }; nativeBuildInputs = [ From d935c8f2d403f56ea7d3ad8f7c000b2ab0eac558 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 27 Dec 2021 23:54:00 +0100 Subject: [PATCH 14/40] home-assistant: 2021.12.5 -> 2021.12.6 --- pkgs/servers/home-assistant/component-packages.nix | 2 +- pkgs/servers/home-assistant/default.nix | 4 ++-- pkgs/servers/home-assistant/frontend.nix | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index a903f7a333f8..a7612f855b88 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -2,7 +2,7 @@ # Do not edit! { - version = "2021.12.5"; + version = "2021.12.6"; components = { "abode" = ps: with ps; [ abodepy ]; "accuweather" = ps: with ps; [ accuweather ]; diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix index 8f309f9b6c4f..0bffbaf45e7a 100644 --- a/pkgs/servers/home-assistant/default.nix +++ b/pkgs/servers/home-assistant/default.nix @@ -265,7 +265,7 @@ let extraBuildInputs = extraPackages py.pkgs; # Don't forget to run parse-requirements.py after updating - hassVersion = "2021.12.5"; + hassVersion = "2021.12.6"; in with py.pkgs; buildPythonApplication rec { pname = "homeassistant"; @@ -282,7 +282,7 @@ in with py.pkgs; buildPythonApplication rec { owner = "home-assistant"; repo = "core"; rev = version; - hash = "sha256:116qklmzvqh3hn3i6i7lvsnqydd2qclk612rwlxs3v56kzpks62n"; + hash = "sha256:0n01cjbbyb1i63z8zxkjlwssqpv6y41jzs7b7jk78w3qnbg15bk3"; }; # leave this in, so users don't have to constantly update their downstream patch handling diff --git a/pkgs/servers/home-assistant/frontend.nix b/pkgs/servers/home-assistant/frontend.nix index 62d2cc10a07a..30dee63f73ea 100644 --- a/pkgs/servers/home-assistant/frontend.nix +++ b/pkgs/servers/home-assistant/frontend.nix @@ -4,11 +4,11 @@ buildPythonPackage rec { # the frontend version corresponding to a specific home-assistant version can be found here # https://github.com/home-assistant/home-assistant/blob/master/homeassistant/components/frontend/manifest.json pname = "home-assistant-frontend"; - version = "20211220.0"; + version = "20211227.0"; src = fetchPypi { inherit pname version; - sha256 = "sha256-qhuTvHN0kjdPIIyfrtj+col1Ba3WSnypqVxGfia4dW4="; + sha256 = "sha256-HdjkquxQM3Vxl+avM0fGanUkCMoTlBHodXIfNhW2lC4="; }; # there is nothing to strip in this package From cc9f4a40758012d32768b98d76a753f84679182a Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 28 Dec 2021 14:13:56 +0100 Subject: [PATCH 15/40] platformio: relax zeroconf constraint --- pkgs/development/embedded/platformio/core.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/embedded/platformio/core.nix b/pkgs/development/embedded/platformio/core.nix index 711d31be3650..31255aaca534 100644 --- a/pkgs/development/embedded/platformio/core.nix +++ b/pkgs/development/embedded/platformio/core.nix @@ -174,7 +174,7 @@ with python.pkgs; buildPythonApplication rec { --subst-var-by SPDX_LICENSE_LIST_DATA '${spdx-license-list-data}' substituteInPlace setup.py \ - --replace "zeroconf==0.28.*" "zeroconf" + --replace "zeroconf==0.37.*" "zeroconf" ''; meta = with lib; { From fceda0ab7eca4b15aea7e276fcb3e5e5b966814e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 28 Dec 2021 10:30:39 +0100 Subject: [PATCH 16/40] python3Packages.identify: 2.4.0 -> 2.4.1 --- pkgs/development/python-modules/identify/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/identify/default.nix b/pkgs/development/python-modules/identify/default.nix index fed8ddd419c0..194dce3f88df 100644 --- a/pkgs/development/python-modules/identify/default.nix +++ b/pkgs/development/python-modules/identify/default.nix @@ -9,7 +9,7 @@ buildPythonPackage rec { pname = "identify"; - version = "2.4.0"; + version = "2.4.1"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -18,7 +18,7 @@ buildPythonPackage rec { owner = "pre-commit"; repo = pname; rev = "v${version}"; - sha256 = "sha256-0J3P3RawafVAfOUhK9qSz5K8y0goMqTjMh5PL60sqME="; + sha256 = "sha256-+kfIpmJ6Gnb33MZ7NZrE8oVSBbZLuRfIvfCbstxJFX0="; }; checkInputs = [ From 873c11500292052a65eb0f9c2e94e2b89bf83281 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 28 Dec 2021 10:53:59 +0100 Subject: [PATCH 17/40] python3Packages.hahomematic: 0.0.17 -> 0.6.1 --- pkgs/development/python-modules/hahomematic/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/hahomematic/default.nix b/pkgs/development/python-modules/hahomematic/default.nix index e94e6b608ae1..9c1dbe560687 100644 --- a/pkgs/development/python-modules/hahomematic/default.nix +++ b/pkgs/development/python-modules/hahomematic/default.nix @@ -10,16 +10,16 @@ buildPythonPackage rec { pname = "hahomematic"; - version = "0.0.17"; + version = "0.6.1"; format = "setuptools"; - disabled = pythonOlder "3.8"; + disabled = pythonOlder "3.9"; src = fetchFromGitHub { owner = "danielperna84"; repo = pname; rev = version; - sha256 = "sha256-XUlg3zuLJwWJCi2qx1f8eBK3Li94QxXz82G0zEgUztc="; + sha256 = "sha256-s3XdbkngdHApV4uE/Qudrr9TFf6gUvNHJKM3RA4UeN0="; }; propagatedBuildInputs = [ @@ -27,7 +27,7 @@ buildPythonPackage rec { voluptuous ]; - # Project has no tests + # Module has no tests doCheck = false; pythonImportsCheck = [ From 5a413bd708297f6cfbc962eaab39fb12a13ee92a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 28 Dec 2021 11:06:19 +0100 Subject: [PATCH 18/40] python3Packages.teslajsonpy: 1.4.1 -> 1.4.2 --- pkgs/development/python-modules/teslajsonpy/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/teslajsonpy/default.nix b/pkgs/development/python-modules/teslajsonpy/default.nix index 64911736cfa2..19e42e917dd3 100644 --- a/pkgs/development/python-modules/teslajsonpy/default.nix +++ b/pkgs/development/python-modules/teslajsonpy/default.nix @@ -15,7 +15,7 @@ buildPythonPackage rec { pname = "teslajsonpy"; - version = "1.4.1"; + version = "1.4.2"; format = "pyproject"; disabled = pythonOlder "3.6"; @@ -24,7 +24,7 @@ buildPythonPackage rec { owner = "zabuldon"; repo = pname; rev = "v${version}"; - sha256 = "1hnlymdi27rjxaivn5csqrj9ahk86cwvbpvdl29v7qal0y2bc433"; + sha256 = "sha256-oablQoumBiqDk7bz1BUpUWddxExoqOofrZzX7y618Hw="; }; nativeBuildInputs = [ From 6572608ea4518c5e5f60653ac06311f584b58bee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Tue, 28 Dec 2021 10:17:48 +0000 Subject: [PATCH 19/40] python3Packages.total-connect-client: 2021.11.5 -> 2021.12 https://github.com/craigjmidwinter/total-connect-client/releases/tag/2021.12 --- .../python-modules/total-connect-client/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/total-connect-client/default.nix b/pkgs/development/python-modules/total-connect-client/default.nix index cc1ddbf70123..2c71d0a17828 100644 --- a/pkgs/development/python-modules/total-connect-client/default.nix +++ b/pkgs/development/python-modules/total-connect-client/default.nix @@ -8,7 +8,7 @@ buildPythonPackage rec { pname = "total-connect-client"; - version = "2021.11.5"; + version = "2021.12"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -17,7 +17,7 @@ buildPythonPackage rec { owner = "craigjmidwinter"; repo = "total-connect-client"; rev = version; - sha256 = "sha256-6hyeU0jigQZsZtdb4E8/iD8YfQeNOKm6IK1CHBizZQs="; + hash = "sha256-cgs6wIMSO8t8CPn6aR35sNcgfDaXDyFBldNEBOr850s="; }; propagatedBuildInputs = [ From 992daed82a06115d7e36a9fc90e4f5c1c08c3db2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Tue, 28 Dec 2021 10:22:09 +0000 Subject: [PATCH 20/40] python3Packages.splinter: 0.16.0 -> 0.17.0 https://github.com/cobrateam/splinter/releases/tag/0.17.0 --- pkgs/development/python-modules/splinter/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/splinter/default.nix b/pkgs/development/python-modules/splinter/default.nix index ae5e5bef474b..9a80bb93621a 100644 --- a/pkgs/development/python-modules/splinter/default.nix +++ b/pkgs/development/python-modules/splinter/default.nix @@ -9,13 +9,13 @@ buildPythonPackage rec { pname = "splinter"; - version = "0.16.0"; + version = "0.17.0"; src = fetchFromGitHub { owner = "cobrateam"; repo = "splinter"; rev = version; - sha256 = "sha256-b6zncEAPtKgBPLFRsCSGeBqiD4A/mHEhjQaEIsefc28="; + hash = "sha256-7QhFz/qBh2ECyeyvjCyqOYy/YrUK7KVX13VC/gem5BQ="; }; propagatedBuildInputs = [ From 75d6b0080fb601618e187c1f2791fd2c0bc20bf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Tue, 28 Dec 2021 10:27:54 +0000 Subject: [PATCH 21/40] python3Packages.pytibber: 0.21.0 -> 0.21.6 --- pkgs/development/python-modules/pytibber/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pytibber/default.nix b/pkgs/development/python-modules/pytibber/default.nix index 9b3668b59783..fbfd0ba030cf 100644 --- a/pkgs/development/python-modules/pytibber/default.nix +++ b/pkgs/development/python-modules/pytibber/default.nix @@ -12,7 +12,7 @@ buildPythonPackage rec { pname = "pytibber"; - version = "0.21.0"; + version = "0.21.6"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -21,7 +21,7 @@ buildPythonPackage rec { owner = "Danielhiversen"; repo = "pyTibber"; rev = version; - sha256 = "sha256-lUe79VHlK/2/1SZfC+Ha+27NUoIKoTlqn75XA/mPCNU="; + hash = "sha256-zgiUXGso3bQ3pCD7r+VYHGBIihPwSfHibS2OZvPUb3Q="; }; propagatedBuildInputs = [ From 1421ddcf8a4bcd387002dd68aa5c07d01d4be093 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Mon, 27 Dec 2021 13:34:00 -0800 Subject: [PATCH 22/40] python3Packages.ipydatawidgets: fix build --- pkgs/development/python-modules/ipydatawidgets/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/python-modules/ipydatawidgets/default.nix b/pkgs/development/python-modules/ipydatawidgets/default.nix index 3f8811f4f3b4..d74dbad18be6 100644 --- a/pkgs/development/python-modules/ipydatawidgets/default.nix +++ b/pkgs/development/python-modules/ipydatawidgets/default.nix @@ -5,6 +5,7 @@ , pytest , pytest-cov , nbval +, jupyter-packaging , ipywidgets , numpy , six @@ -22,6 +23,12 @@ buildPythonPackage rec { sha256 = "d0e4b58b59b508165e8562b8f5d1dbfcd739855847ec0477bd9185a5e9b7c5bc"; }; + nativeBuildInputs = [ + jupyter-packaging + ]; + + setupPyBuildFlags = [ "--skip-npm" ]; + propagatedBuildInputs = [ ipywidgets numpy From a4778e618f3d4b37972a856e3a45f80a9809ab48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Tue, 28 Dec 2021 11:19:52 +0000 Subject: [PATCH 23/40] python3Packages.python-mapnik: use boost175 --- pkgs/top-level/python-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6dbce8a68df5..3e8075885a75 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7845,7 +7845,7 @@ in { python-manilaclient = callPackage ../development/python-modules/python-manilaclient { }; python-mapnik = let - boost = pkgs.boost.override { + boost = pkgs.boost175.override { enablePython = true; inherit python; }; From 74ea9f92910295c03dcd58f59853f1c3ca1322a2 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 26 Dec 2021 14:50:46 +0100 Subject: [PATCH 24/40] python3Packages.funcparserlib: 0.3.6 -> 1.0.0a0 --- .../python-modules/funcparserlib/default.nix | 45 ++++++++++++++----- 1 file changed, 33 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/funcparserlib/default.nix b/pkgs/development/python-modules/funcparserlib/default.nix index 19e2dd146d20..3ace04b108d4 100644 --- a/pkgs/development/python-modules/funcparserlib/default.nix +++ b/pkgs/development/python-modules/funcparserlib/default.nix @@ -1,25 +1,47 @@ { lib , buildPythonPackage -, fetchPypi +, fetchFromGitHub +, fetchpatch +, poetry-core , python -, isPy3k +, pytestCheckHook +, pythonOlder }: buildPythonPackage rec { pname = "funcparserlib"; - version = "0.3.6"; + version = "1.0.0a0"; + format = "pyproject"; - src = fetchPypi { - inherit pname version; - sha256 = "b7992eac1a3eb97b3d91faa342bfda0729e990bd8a43774c1592c091e563c91d"; + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "vlasovskikh"; + repo = pname; + rev = version; + sha256 = "sha256-YfcboKjyc5ASzrp0duu2R6psf51MGZIeZ0owo5QNSnU="; }; - checkPhase = '' - ${python.interpreter} -m unittest discover - ''; + nativeBuildInputs = [ + poetry-core + ]; - # Tests are Python 2.x only judging from SyntaxError - doCheck = !(isPy3k); + checkInputs = [ + pytestCheckHook + ]; + + patches = [ + # Support for poetry-core, https://github.com/vlasovskikh/funcparserlib/pull/73 + (fetchpatch { + name = "support-poetry-core.patch"; + url = "https://github.com/vlasovskikh/funcparserlib/commit/61ed558fc146b7a30879919325dfa8aae77be556.patch"; + sha256 = "sha256-tqdR3r4/t7RWBYZeAabaN7oYf6VxkVVz006XICX9rYI="; + }) + ]; + + pythonImportsCheck = [ + "funcparserlib" + ]; meta = with lib; { description = "Recursive descent parsing library based on functional combinators"; @@ -27,5 +49,4 @@ buildPythonPackage rec { license = licenses.mit; platforms = platforms.unix; }; - } From dc3e2d57ef1561ea7dfa213bffd1ee53588d6866 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 26 Dec 2021 17:55:31 +0100 Subject: [PATCH 25/40] python3Packages.blockdiag: 2.0.1 -> 3.0.0 --- .../python-modules/blockdiag/default.nix | 52 ++++++++++++++++--- 1 file changed, 45 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/blockdiag/default.nix b/pkgs/development/python-modules/blockdiag/default.nix index f5d8b93c4816..34245d93560c 100644 --- a/pkgs/development/python-modules/blockdiag/default.nix +++ b/pkgs/development/python-modules/blockdiag/default.nix @@ -1,22 +1,60 @@ -{ lib, buildPythonPackage, fetchFromGitHub -, setuptools, funcparserlib, pillow, webcolors, reportlab, docutils +{ lib +, buildPythonPackage +, docutils +, fetchFromGitHub +, funcparserlib +, nose +, pillow +, ephem +, pythonOlder +, pytestCheckHook +, reportlab +, setuptools +, webcolors +, python }: buildPythonPackage rec { pname = "blockdiag"; - version = "2.0.1"; + version = "3.0.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "blockdiag"; repo = "blockdiag"; rev = version; - sha256 = "1cvcl66kf4wdh2n4fdk37zk59lp58wd2fhf84n7pbn0lilyksk5x"; + sha256 = "sha256-j8FoNUIJJOaahaol1MRPyY2jcPCEIlaAD4bmM2QKFFI="; }; - propagatedBuildInputs = [ setuptools funcparserlib pillow webcolors reportlab docutils ]; + propagatedBuildInputs = [ + setuptools + funcparserlib + pillow + webcolors + reportlab + docutils + ]; - # require network and fail - doCheck = false; + checkInputs = [ + ephem + nose + pytestCheckHook + ]; + + pytestFlagsArray = [ + "src/blockdiag/tests/" + ]; + + disabledTests = [ + # Test require network access + "test_app_cleans_up_images" + ]; + + pythonImportsCheck = [ + "blockdiag" + ]; meta = with lib; { description = "Generate block-diagram image from spec-text file (similar to Graphviz)"; From 7ea63e17c2245895b26e772e3ae9c782ffb3025b Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 26 Dec 2021 18:24:10 +0100 Subject: [PATCH 26/40] python3Packages.nwdiag: 2.0.0 -> 3.0.0 --- .../python-modules/nwdiag/default.nix | 45 +++++++++++++++---- 1 file changed, 36 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/nwdiag/default.nix b/pkgs/development/python-modules/nwdiag/default.nix index c8147d9d9a4e..637708e2c15b 100644 --- a/pkgs/development/python-modules/nwdiag/default.nix +++ b/pkgs/development/python-modules/nwdiag/default.nix @@ -1,22 +1,49 @@ -{ lib, fetchurl, buildPythonPackage, pep8, nose, unittest2, docutils -, blockdiag, setuptools +{ lib +, blockdiag +, fetchFromGitHub +, buildPythonPackage +, nose +, pytestCheckHook +, setuptools +, pythonOlder }: buildPythonPackage rec { pname = "nwdiag"; version = "2.0.0"; + format = "setuptools"; - src = fetchurl { - url = "mirror://pypi/n/nwdiag/${pname}-${version}.tar.gz"; - sha256 = "1qkl1lq7cblr6fra2rjw3zlcccragp8384hpm4n7dkc5c3yzmmsw"; + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "blockdiag"; + repo = pname; + rev = version; + sha256 = "sha256-PWLFJhXQeuUQQpGkXN2pEJs/1WECpJpUqWbGH3150TI="; }; - buildInputs = [ pep8 nose unittest2 docutils ]; + propagatedBuildInputs = [ + blockdiag + setuptools + ]; - propagatedBuildInputs = [ blockdiag setuptools ]; + checkInputs = [ + nose + pytestCheckHook + ]; - # tests fail - doCheck = false; + pytestFlagsArray = [ + "src/nwdiag/tests/" + ]; + + disabledTests = [ + # UnicodeEncodeError: 'latin-1' codec can't encode... + "test_setup_inline_svg_is_true_with_multibytes" + ]; + + pythonImportsCheck = [ + "nwdiag" + ]; meta = with lib; { description = "Generate network-diagram image from spec-text file (similar to Graphviz)"; From 78cd777c9399317ffbe9efd32900d7bf85bd7173 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 26 Dec 2021 18:30:22 +0100 Subject: [PATCH 27/40] python3Packages.actdiag: 2.0.0 -> 3.0.0 --- .../python-modules/actdiag/default.nix | 40 +++++++++++++++---- 1 file changed, 33 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/actdiag/default.nix b/pkgs/development/python-modules/actdiag/default.nix index 92917f6ea954..c1ab1843eb33 100644 --- a/pkgs/development/python-modules/actdiag/default.nix +++ b/pkgs/development/python-modules/actdiag/default.nix @@ -1,18 +1,44 @@ -{ lib, buildPythonPackage, fetchPypi -, nose, docutils, blockdiag, reportlab }: +{ lib +, blockdiag +, buildPythonPackage +, fetchFromGitHub +, nose +, pytestCheckHook +, pythonOlder +, setuptools +}: buildPythonPackage rec { pname = "actdiag"; version = "2.0.0"; + format = "setuptools"; - src = fetchPypi { - inherit pname version; - sha256 = "0g51v9dmdq18z33v332f1f0cmb3hqgaga5minj0mc2sglark1s7h"; + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "blockdiag"; + repo = pname; + rev = version; + sha256 = "sha256-pTWunoc6T1m+4SOe0ob0ac4ZwwXsYNZwkdwVtlMZrIo="; }; - propagatedBuildInputs = [ blockdiag docutils ]; + propagatedBuildInputs = [ + blockdiag + setuptools + ]; - checkInputs = [ nose reportlab ]; + checkInputs = [ + nose + pytestCheckHook + ]; + + pytestFlagsArray = [ + "src/actdiag/tests/" + ]; + + pythonImportsCheck = [ + "actdiag" + ]; meta = with lib; { description = "Generate activity-diagram image from spec-text file (similar to Graphviz)"; From 22fe00429e69582fe5a184d0907a1376537c7065 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 26 Dec 2021 19:56:57 +0100 Subject: [PATCH 28/40] python3Packages.seqdiag: 2.0.0 -> 3.0.0 --- .../python-modules/seqdiag/default.nix | 48 ++++++++++++++----- 1 file changed, 36 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/seqdiag/default.nix b/pkgs/development/python-modules/seqdiag/default.nix index 2ae9defc504e..c27a2eb2c91c 100644 --- a/pkgs/development/python-modules/seqdiag/default.nix +++ b/pkgs/development/python-modules/seqdiag/default.nix @@ -1,25 +1,49 @@ -{ lib, fetchurl, buildPythonPackage, isPy27, pep8, nose, unittest2, docutils +{ lib , blockdiag +, buildPythonPackage +, fetchFromGitHub +, nose +, pytestCheckHook +, pythonOlder +, setuptools }: buildPythonPackage rec { pname = "seqdiag"; - version = "2.0.0"; - disabled = isPy27; + version = "3.0.0"; + format = "setuptools"; - src = fetchurl { - url = "mirror://pypi/s/seqdiag/${pname}-${version}.tar.gz"; - sha256 = "0k7j4f9j3d0325piwvbv90nfh0wzfk2n6s73s6h6nsxmqshcgswk"; + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "blockdiag"; + repo = pname; + rev = version; + sha256 = "sha256-Dh9JMx50Nexi0q39rYr9MpkKmQRAfT7lzsNOXoTuphg="; }; - buildInputs = [ pep8 nose unittest2 docutils ]; + propagatedBuildInputs = [ + blockdiag + setuptools + ]; - propagatedBuildInputs = [ blockdiag ]; + checkInputs = [ + nose + pytestCheckHook + ]; - # Tests fail: - # ... - # ERROR: Failure: OSError ([Errno 2] No such file or directory: '/tmp/nix-build-python2.7-seqdiag-0.9.0.drv-0/seqdiag-0.9.0/src/seqdiag/tests/diagrams/') - doCheck = false; + pytestFlagsArray = [ + "src/seqdiag/tests/" + ]; + + disabledTests = [ + # UnicodeEncodeError: 'latin-1' codec can't encode... + "test_setup_inline_svg_is_true_with_multibytes" + ]; + + pythonImportsCheck = [ + "seqdiag" + ]; meta = with lib; { description = "Generate sequence-diagram image from spec-text file (similar to Graphviz)"; From 13879f89e0fcfa08d71915631b9ca7781ef15dbf Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 26 Dec 2021 20:05:58 +0100 Subject: [PATCH 29/40] python3Packages.sphinxcontrib-*diag: disable on older Python releases --- .../sphinxcontrib-actdiag/default.nix | 16 ++++++++++++--- .../sphinxcontrib-nwdiag/default.nix | 20 ++++++++++++++----- .../sphinxcontrib-seqdiag/default.nix | 20 ++++++++++++++----- 3 files changed, 43 insertions(+), 13 deletions(-) diff --git a/pkgs/development/python-modules/sphinxcontrib-actdiag/default.nix b/pkgs/development/python-modules/sphinxcontrib-actdiag/default.nix index 8f93a5364bb1..32470e98b4e0 100644 --- a/pkgs/development/python-modules/sphinxcontrib-actdiag/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-actdiag/default.nix @@ -4,25 +4,35 @@ , sphinx , actdiag , blockdiag +, pythonOlder }: buildPythonPackage rec { pname = "sphinxcontrib-actdiag"; version = "3.0.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; hash = "sha256-PFXUVP/Due/nwg8q2vAiGZuCVhLTLyAL6KSXqofg+B8="; }; - propagatedBuildInputs = [ sphinx actdiag blockdiag ]; + propagatedBuildInputs = [ + actdiag + blockdiag + sphinx + ]; - pythonImportsCheck = [ "sphinxcontrib.actdiag" ]; + pythonImportsCheck = [ + "sphinxcontrib.actdiag" + ]; meta = with lib; { description = "Sphinx actdiag extension"; homepage = "https://github.com/blockdiag/sphinxcontrib-actdiag"; - maintainers = with maintainers; [ davidtwco ]; license = licenses.bsd2; + maintainers = with maintainers; [ davidtwco ]; }; } diff --git a/pkgs/development/python-modules/sphinxcontrib-nwdiag/default.nix b/pkgs/development/python-modules/sphinxcontrib-nwdiag/default.nix index 10963a73a912..47573ad609a8 100644 --- a/pkgs/development/python-modules/sphinxcontrib-nwdiag/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-nwdiag/default.nix @@ -1,28 +1,38 @@ { lib +, blockdiag , buildPythonPackage , fetchPypi -, sphinx -, blockdiag , nwdiag +, pythonOlder +, sphinx }: buildPythonPackage rec { pname = "sphinxcontrib-nwdiag"; version = "2.0.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; hash = "sha256-bula1DutRv6NwfZRhciZfLHRZmXu42p+qvbeExN/+Fk="; }; - propagatedBuildInputs = [ sphinx blockdiag nwdiag ]; + propagatedBuildInputs = [ + blockdiag + nwdiag + sphinx + ]; - pythonImportsCheck = [ "sphinxcontrib.nwdiag" ]; + pythonImportsCheck = [ + "sphinxcontrib.nwdiag" + ]; meta = with lib; { description = "Sphinx nwdiag extension"; homepage = "https://github.com/blockdiag/sphinxcontrib-nwdiag"; - maintainers = with maintainers; [ davidtwco ]; license = licenses.bsd2; + maintainers = with maintainers; [ davidtwco ]; }; } diff --git a/pkgs/development/python-modules/sphinxcontrib-seqdiag/default.nix b/pkgs/development/python-modules/sphinxcontrib-seqdiag/default.nix index 8d2541e62951..cc3a96086e4e 100644 --- a/pkgs/development/python-modules/sphinxcontrib-seqdiag/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-seqdiag/default.nix @@ -1,28 +1,38 @@ { lib +, blockdiag , buildPythonPackage , fetchPypi -, sphinx -, blockdiag +, pythonOlder , seqdiag +, sphinx }: buildPythonPackage rec { pname = "sphinxcontrib-seqdiag"; version = "3.0.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; hash = "sha256-QH5IeXZz9x2Ujp/6BHFsrB2ZqeyPYW3jdk1C0DNBZXQ="; }; - propagatedBuildInputs = [ sphinx blockdiag seqdiag ]; + propagatedBuildInputs = [ + blockdiag + seqdiag + sphinx + ]; - pythonImportsCheck = [ "sphinxcontrib.seqdiag" ]; + pythonImportsCheck = [ + "sphinxcontrib.seqdiag" + ]; meta = with lib; { description = "Sphinx seqdiag extension"; homepage = "https://github.com/blockdiag/sphinxcontrib-seqdiag"; - maintainers = with maintainers; [ davidtwco ]; license = licenses.bsd2; + maintainers = with maintainers; [ davidtwco ]; }; } From ebb09c61e924ff56ea3ebb5db41ff916cd936bf6 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 28 Dec 2021 10:13:43 +0100 Subject: [PATCH 30/40] python3Packages.fountains: 1.1.1 -> 1.2.0 --- .../python-modules/fountains/default.nix | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/fountains/default.nix b/pkgs/development/python-modules/fountains/default.nix index 7b3e470f08c0..ee9a22c58f2e 100644 --- a/pkgs/development/python-modules/fountains/default.nix +++ b/pkgs/development/python-modules/fountains/default.nix @@ -6,26 +6,24 @@ buildPythonPackage rec { pname = "fountains"; - version = "1.1.1"; + version = "1.2.0"; + format = "setuptools"; src = fetchPypi { inherit pname version; - sha256 = "fbf4e2cb11d60d3bafca5bb7c01c254d08a5541ed7ddfe00ef975eb173fb75a4"; + sha256 = "sha256-bea8EXw3b0CibhEREdY4FZouiiXP4y+UbbDXed7Ltwo="; }; propagatedBuildInputs = [ bitlist ]; - postPatch = '' - substituteInPlace setup.py \ - --replace "bitlist~=0.5.1" "bitlist>=0.5.1" - ''; - - # Project has no test + # Module has no test doCheck = false; - pythonImportsCheck = [ "fountains" ]; + pythonImportsCheck = [ + "fountains" + ]; meta = with lib; { description = "Python library for generating and embedding data for unit testing"; From 85d6b673bd72a064c158fe32dc704e02a23fbd6d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 28 Dec 2021 10:17:20 +0100 Subject: [PATCH 31/40] python3Packages.fe25519: 1.0.0 -> 1.1.0 --- pkgs/development/python-modules/fe25519/default.nix | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/fe25519/default.nix b/pkgs/development/python-modules/fe25519/default.nix index 240b000bbbbb..05afcff5627c 100644 --- a/pkgs/development/python-modules/fe25519/default.nix +++ b/pkgs/development/python-modules/fe25519/default.nix @@ -10,12 +10,12 @@ buildPythonPackage rec { pname = "fe25519"; - version = "1.0.0"; + version = "1.1.0"; format = "setuptools"; src = fetchPypi { inherit pname version; - sha256 = "sha256-947DIkmg56mAegEgLKq8iqETWf2SCvtmeDZi5cxVSJA="; + sha256 = "sha256-3WFpbt4bA7zPlK+mp5DJXdgk44MBimCbpIMhRjZ5p0o="; }; propagatedBuildInputs = [ @@ -29,12 +29,6 @@ buildPythonPackage rec { pytestCheckHook ]; - postPatch = '' - substituteInPlace setup.py \ - --replace "bitlist~=0.5.1" "bitlist>=0.5.1" \ - --replace "parts~=1.1.2" "parts>=1.1.2" - ''; - pythonImportsCheck = [ "fe25519" ]; From 1e01453b3095802881928b38acf5f10001fb38b5 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 28 Dec 2021 10:17:45 +0100 Subject: [PATCH 32/40] python3Packages.ge25519: 1.0.0 -> 1.1.0 --- pkgs/development/python-modules/ge25519/default.nix | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/ge25519/default.nix b/pkgs/development/python-modules/ge25519/default.nix index 62d7e271ba8a..5c9369e005b9 100644 --- a/pkgs/development/python-modules/ge25519/default.nix +++ b/pkgs/development/python-modules/ge25519/default.nix @@ -11,12 +11,12 @@ buildPythonPackage rec { pname = "ge25519"; - version = "1.0.0"; + version = "1.1.0"; format = "setuptools"; src = fetchPypi { inherit pname version; - sha256 = "sha256-f7xvZ92zRO3GLSdfgEyhkWVwAFT2TvKHy6+iF+k43bI="; + sha256 = "sha256-0M9RF8tlEoLyduvY3RvltGAnsus3HF6FEy22b6w6aUs="; }; propagatedBuildInputs = [ @@ -31,12 +31,6 @@ buildPythonPackage rec { pytestCheckHook ]; - postPatch = '' - substituteInPlace setup.py \ - --replace "bitlist~=0.5.1" "bitlist>=0.5.1" \ - --replace "parts~=1.1.2" "parts>=1.1.2" - ''; - pythonImportsCheck = [ "ge25519" ]; From a662d54ccfd9636807e20c95f587ff0b40ce922f Mon Sep 17 00:00:00 2001 From: "Bryan A. S" Date: Tue, 28 Dec 2021 14:18:52 -0300 Subject: [PATCH 33/40] k9s: 0.25.12 -> 0.25.18 --- pkgs/applications/networking/cluster/k9s/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/cluster/k9s/default.nix b/pkgs/applications/networking/cluster/k9s/default.nix index 14e030784933..27514303a15f 100644 --- a/pkgs/applications/networking/cluster/k9s/default.nix +++ b/pkgs/applications/networking/cluster/k9s/default.nix @@ -2,13 +2,13 @@ buildGoModule rec { pname = "k9s"; - version = "0.25.12"; + version = "0.25.18"; src = fetchFromGitHub { owner = "derailed"; repo = "k9s"; rev = "v${version}"; - sha256 = "sha256-S+roKkAtiGJmp/MHFeB+8mLQDL9okzLuJW6DMz3dQDk="; + sha256 = "sha256-iUhMPtFX7qFULegiyhlT4aG9q3deZ8aRqyEcbZ9jY/s="; }; ldflags = [ From bf15031e58270a433675c30ee985a81c167a1b38 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 28 Dec 2021 01:16:13 +0100 Subject: [PATCH 34/40] python3Packages.humanize: 3.12.0 -> 3.13.1 --- .../python-modules/humanize/default.nix | 35 +++++++++++++------ 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/humanize/default.nix b/pkgs/development/python-modules/humanize/default.nix index f878320e5d47..d0b2464608b9 100644 --- a/pkgs/development/python-modules/humanize/default.nix +++ b/pkgs/development/python-modules/humanize/default.nix @@ -1,7 +1,7 @@ { lib , buildPythonPackage -, fetchPypi -, isPy27 +, fetchFromGitHub +, pythonOlder , setuptools-scm , setuptools , pytestCheckHook @@ -9,18 +9,33 @@ }: buildPythonPackage rec { - version = "3.12.0"; + version = "3.13.1"; pname = "humanize"; - disabled = isPy27; # setup.py no longer compatible + format = "pyproject"; - src = fetchPypi { - inherit pname version; - sha256 = "5ec1a66e230a3e31fb3f184aab9436ea13d4e37c168e0ffc345ae5bb57e58be6"; + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "jmoiron"; + repo = pname; + rev = version; + sha256 = "sha256-lgGBvYb3ciqETBOR31gxQVD7YyopTtmr++nCwvm63Zs="; }; - nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ setuptools ]; - checkInputs = [ pytestCheckHook freezegun ]; + SETUPTOOLS_SCM_PRETEND_VERSION = version; + + nativeBuildInputs = [ + setuptools-scm + ]; + + propagatedBuildInputs = [ + setuptools + ]; + + checkInputs = [ + freezegun + pytestCheckHook + ]; meta = with lib; { description = "Python humanize utilities"; From 8b29f932f091f1d1c2e06ca64696a7cbb8a28b29 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 28 Dec 2021 01:17:16 +0100 Subject: [PATCH 35/40] wapiti: 3.0.7 -> 3.0.9 --- pkgs/tools/security/wapiti/default.nix | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/pkgs/tools/security/wapiti/default.nix b/pkgs/tools/security/wapiti/default.nix index 4d877030e537..e27851f618d6 100644 --- a/pkgs/tools/security/wapiti/default.nix +++ b/pkgs/tools/security/wapiti/default.nix @@ -5,13 +5,14 @@ python3.pkgs.buildPythonApplication rec { pname = "wapiti"; - version = "3.0.7"; + version = "3.0.9"; + format = "setuptools"; src = fetchFromGitHub { owner = "wapiti-scanner"; repo = pname; rev = version; - sha256 = "0kya9a2zs1c518z4p34pfjx2sms6843gh3c9qc9zvk4lr4g7hw3x"; + sha256 = "sha256-olqPM8EQ8LxQQM7kqcjbT9RMdBeYdhfn6Qp6BUu8K5Q="; }; nativeBuildInputs = with python3.pkgs; [ @@ -22,17 +23,20 @@ python3.pkgs.buildPythonApplication rec { aiocache aiosqlite beautifulsoup4 + brotli browser-cookie3 cryptography dnspython httpx httpx-ntlm httpx-socks + humanize loguru Mako markupsafe pysocks six + sslyze sqlalchemy tld yaswfp @@ -49,16 +53,8 @@ python3.pkgs.buildPythonApplication rec { postPatch = '' # Ignore pinned versions substituteInPlace setup.py \ - --replace "httpx-socks[asyncio] == 0.5.1" "httpx-socks[asyncio]" \ - --replace "markupsafe==1.1.1" "markupsafe" \ - --replace "importlib_metadata==3.7.2" "importlib_metadata" \ - --replace "browser-cookie3==0.11.4" "browser-cookie3" \ - --replace "cryptography==3.3.2" "cryptography" \ - --replace "httpx[brotli]==0.20.0" "httpx" \ - --replace "sqlalchemy>=1.4.26" "sqlalchemy" \ - --replace "aiocache==0.11.1" "aiocache" \ - --replace "aiosqlite==0.17.0" "aiosqlite" \ - --replace "dnspython==2.1.0" "dnspython" + --replace "httpx-socks[asyncio] == 0.6.0" "httpx-socks[asyncio]" + sed -i -e "s/==[0-9.]*//" setup.py substituteInPlace setup.cfg \ --replace " --cov --cov-report=xml" "" ''; @@ -103,6 +99,7 @@ python3.pkgs.buildPythonApplication rec { "test_request_object" "test_script" "test_ssrf" + "test_merge_with_and_without_redirection" "test_tag_name_escape" "test_timeout" "test_title_false_positive" @@ -121,7 +118,7 @@ python3.pkgs.buildPythonApplication rec { # Requires a PHP installation "test_timesql" "test_cookies" - # E TypeError: Expected bytes or bytes-like object got: + # TypeError: Expected bytes or bytes-like object got: "test_persister_upload" ]; From d3b16c683f86cd8f321c24ab658d913160dbee03 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Tue, 28 Dec 2021 10:26:08 -0800 Subject: [PATCH 36/40] luaPackages.ldoc: update homepage --- pkgs/development/lua-modules/generated-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/lua-modules/generated-packages.nix b/pkgs/development/lua-modules/generated-packages.nix index d4d0a02d81bd..45a4801a73b9 100644 --- a/pkgs/development/lua-modules/generated-packages.nix +++ b/pkgs/development/lua-modules/generated-packages.nix @@ -572,7 +572,7 @@ buildLuarocksPackage { propagatedBuildInputs = [ penlight markdown ]; meta = { - homepage = "http://stevedonovan.github.com/ldoc"; + homepage = "https://github.com/lunarmodules/LDoc"; description = "A Lua Documentation Tool"; license.fullName = "MIT/X11"; }; From d0fa878dad4f441b6e1ddcce5ffd3aa570ce1ac9 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 27 Dec 2021 22:45:16 +0100 Subject: [PATCH 37/40] python3Packages.pydicom: 2.1.2 -> 2.2.2 --- .../python-modules/pydicom/default.nix | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/pydicom/default.nix b/pkgs/development/python-modules/pydicom/default.nix index 69d0a538de0b..5c7d5ab92ab4 100644 --- a/pkgs/development/python-modules/pydicom/default.nix +++ b/pkgs/development/python-modules/pydicom/default.nix @@ -11,13 +11,13 @@ let pname = "pydicom"; - version = "2.1.2"; + version = "2.2.2"; src = fetchFromGitHub { owner = "${pname}"; repo = "${pname}"; rev = "v${version}"; - sha256 = "sha256-iExy+mUs1uqs/u9N6btlqyP6/TvoPVsuOuzs56zZAS8="; + sha256 = "sha256-p5hJAUsactv6UEvbVaF+zk4iapx98eYkC9Zo+lzFATA="; }; # Pydicom needs pydicom-data to run some tests. If these files aren't downloaded @@ -34,9 +34,15 @@ buildPythonPackage { inherit pname version src; disabled = pythonOlder "3.6"; - propagatedBuildInputs = [ numpy pillow setuptools ]; + propagatedBuildInputs = [ + numpy + pillow + setuptools + ]; - checkInputs = [ pytestCheckHook ]; + checkInputs = [ + pytestCheckHook + ]; # Setting $HOME to prevent pytest to try to create a folder inside # /homeless-shelter which is read-only. @@ -58,9 +64,13 @@ buildPythonPackage { "test_time_check" ]; + pythonImportsCheck = [ + "pydicom" + ]; + meta = with lib; { + description = "Python package for working with DICOM files"; homepage = "https://pydicom.github.io"; - description = "Pure-Python package for working with DICOM files"; license = licenses.mit; maintainers = with maintainers; [ bcdarwin ]; }; From 61f179636656e0839a9a4d1609f4f7cff1ca6b92 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 27 Dec 2021 23:14:48 +0100 Subject: [PATCH 38/40] python3Packages.pynetdicom: 2.0.0 -> 2.0.0 --- .../python-modules/pynetdicom/default.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/pynetdicom/default.nix b/pkgs/development/python-modules/pynetdicom/default.nix index bd27ff7fde6c..49068fec5d57 100644 --- a/pkgs/development/python-modules/pynetdicom/default.nix +++ b/pkgs/development/python-modules/pynetdicom/default.nix @@ -6,17 +6,21 @@ , pyfakefs , pytestCheckHook , sqlalchemy +, pythonOlder }: buildPythonPackage rec { pname = "pynetdicom"; - version = "1.5.7"; + version = "2.0.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "pydicom"; repo = pname; rev = "v${version}"; - sha256 = "0wr6nh0xrhzwf05gnf3dwg5r3lhn9nfwch3l16zkbj6fli871brc"; + sha256 = "sha256-Kfcfk76au2ymbX+nl0PhuuCd+t6dYRbTurGlW6msv3Y="; }; propagatedBuildInputs = [ @@ -33,6 +37,7 @@ buildPythonPackage rec { # Some tests needs network capabilities "test_str_types_empty" "test_associate_reject" + "TestAEGoodAssociation" "TestEchoSCP" "TestEchoSCPCLI" "TestFindSCP" @@ -50,7 +55,9 @@ buildPythonPackage rec { "TestState" ]; - pythonImportsCheck = [ "pynetdicom" ]; + pythonImportsCheck = [ + "pynetdicom" + ]; meta = with lib; { description = "Python implementation of the DICOM networking protocol"; From d53978239b265066804a45b7607b010b9cb4c50c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 27 Dec 2021 23:18:31 +0100 Subject: [PATCH 39/40] expliot: releax pynetdicom constraint --- pkgs/tools/security/expliot/default.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/security/expliot/default.nix b/pkgs/tools/security/expliot/default.nix index 2a3c1df0e8f7..848ee536380f 100644 --- a/pkgs/tools/security/expliot/default.nix +++ b/pkgs/tools/security/expliot/default.nix @@ -22,8 +22,6 @@ buildPythonApplication rec { pname = "expliot"; version = "0.9.8"; - disabled = python3.pythonOlder "3.7"; - src = fetchFromGitLab { owner = "expliot_framework"; repo = pname; @@ -50,10 +48,18 @@ buildPythonApplication rec { zeroconf ]; + postPatch = '' + # https://gitlab.com/expliot_framework/expliot/-/merge_requests/113 + substituteInPlace setup.py \ + --replace "pynetdicom>=1.5.1,<2" "pynetdicom>=2,<3" + ''; + # Project has no tests doCheck = false; - pythonImportsCheck = [ "expliot" ]; + pythonImportsCheck = [ + "expliot" + ]; meta = with lib; { description = "IoT security testing and exploitation framework"; From eaeea6e9337b93d2acb7c2aa27e3f4617408375a Mon Sep 17 00:00:00 2001 From: Winter Date: Tue, 28 Dec 2021 15:18:30 -0500 Subject: [PATCH 40/40] newsboat: remove unneeded CFLAGS on darwin --- pkgs/applications/networking/feedreaders/newsboat/default.nix | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkgs/applications/networking/feedreaders/newsboat/default.nix b/pkgs/applications/networking/feedreaders/newsboat/default.nix index 8c9587254d7a..e746f115043b 100644 --- a/pkgs/applications/networking/feedreaders/newsboat/default.nix +++ b/pkgs/applications/networking/feedreaders/newsboat/default.nix @@ -34,9 +34,6 @@ rustPlatform.buildRustPackage rec { make prefix="$out" ''; - # TODO: Check if that's still needed - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin " -Wno-error=format-security"; - # https://github.com/NixOS/nixpkgs/pull/98471#issuecomment-703100014 . We set # these for all platforms, since upstream's gettext crate behavior might # change in the future.