Merge master into staging-next

authored by github-actions[bot] and committed by GitHub 444daea0 937c8665

+220 -51
+2 -2
pkgs/applications/editors/poke/default.nix
··· 22 22 isCross = stdenv.hostPlatform != stdenv.buildPlatform; 23 23 in stdenv.mkDerivation rec { 24 24 pname = "poke"; 25 - version = "2.2"; 25 + version = "2.3"; 26 26 27 27 src = fetchurl { 28 28 url = "mirror://gnu/${pname}/${pname}-${version}.tar.gz"; 29 - sha256 = "sha256-xF6k5xpRohhTZzhcAc65dZbsW3EDOGm+xKYLHLciWQM="; 29 + sha256 = "sha256-NpDPERbafLOp7GtPcAPiU+JotRAhKiiP04qv7Q68x2Y="; 30 30 }; 31 31 32 32 outputs = [ "out" "dev" "info" "lib" "man" ];
+2 -2
pkgs/applications/networking/cluster/arkade/default.nix
··· 6 6 7 7 buildGoModule rec { 8 8 pname = "arkade"; 9 - version = "0.8.18"; 9 + version = "0.8.19"; 10 10 11 11 src = fetchFromGitHub { 12 12 owner = "alexellis"; 13 13 repo = "arkade"; 14 14 rev = version; 15 - sha256 = "sha256-VQI2eAxOkOkwYkTM/UyyK6lnXFoLFHWE/ekm5qLN9OE="; 15 + sha256 = "sha256-GbuDL0JSG0r2LVcdJgQFBMNDpAl2WbhjIX0Ls9yCDYg="; 16 16 }; 17 17 18 18 CGO_ENABLED = 0;
+2 -2
pkgs/development/interpreters/janet/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "janet"; 5 - version = "1.21.1"; 5 + version = "1.21.2"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "janet-lang"; 9 9 repo = pname; 10 10 rev = "v${version}"; 11 - sha256 = "sha256-wJwlGliXoj0XmC9qb6SCo8mUy4aqHvJtFiigUB7PFLE="; 11 + sha256 = "sha256-6E726+DLs1hCUbr2/rqIdSn8u94LLFdKBBHkbB4rgm0="; 12 12 }; 13 13 14 14 # This release fails the test suite on darwin, remove when debugged.
+7 -4
pkgs/development/libraries/igraph/default.nix
··· 12 12 , lapack 13 13 , libxml2 14 14 , libxslt 15 + , llvmPackages 15 16 , pkg-config 17 + , plfit 16 18 , python3 17 19 , sourceHighlight 18 20 , suitesparse ··· 30 32 sha256 = "sha256-SL9PcT18vFvykCv4VRXxXtlcDAcybmwEImnnKXMciFQ="; 31 33 }; 32 34 33 - # Normally, igraph wants us to call bootstrap.sh, which will call 34 - # tools/getversion.sh. Instead, we're going to put the version directly 35 - # where igraph wants, and then let autoreconfHook do the rest of the 36 - # bootstrap. ~ C. 37 35 postPatch = '' 38 36 echo "${version}" > IGRAPH_VERSION 39 37 '' + lib.optionalString stdenv.isAarch64 '' ··· 65 63 gmp 66 64 lapack 67 65 libxml2 66 + plfit 68 67 suitesparse 68 + ] ++ lib.optionals stdenv.cc.isClang [ 69 + llvmPackages.openmp 69 70 ]; 70 71 71 72 cmakeFlags = [ ··· 75 76 "-DIGRAPH_USE_INTERNAL_GLPK=OFF" 76 77 "-DIGRAPH_USE_INTERNAL_CXSPARSE=OFF" 77 78 "-DIGRAPH_USE_INTERNAL_GMP=OFF" 79 + "-DIGRAPH_USE_INTERNAL_PLFIT=OFF" 78 80 "-DIGRAPH_GLPK_SUPPORT=ON" 79 81 "-DIGRAPH_GRAPHML_SUPPORT=ON" 82 + "-DIGRAPH_OPENMP_SUPPORT=ON" 80 83 "-DIGRAPH_ENABLE_LTO=AUTO" 81 84 "-DIGRAPH_ENABLE_TLS=ON" 82 85 "-DBUILD_SHARED_LIBS=ON"
+2 -2
pkgs/development/libraries/nlopt/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, cmake, octave ? null }: 1 + { lib, stdenv, fetchFromGitHub, cmake, octave ? null, libiconv }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "nlopt"; ··· 11 11 sha256 = "sha256-TgieCX7yUdTAEblzXY/gCN0r6F9TVDh4RdNDjQdXZ1o="; 12 12 }; 13 13 14 - nativeBuildInputs = [ cmake ]; 14 + nativeBuildInputs = [ cmake ] ++ lib.optionals stdenv.isDarwin [ libiconv ]; 15 15 buildInputs = [ octave ]; 16 16 17 17 configureFlags = [
+2 -2
pkgs/development/python-modules/adafruit-platformdetect/default.nix
··· 6 6 7 7 buildPythonPackage rec { 8 8 pname = "adafruit-platformdetect"; 9 - version = "3.22.0"; 9 + version = "3.22.1"; 10 10 format = "setuptools"; 11 11 12 12 src = fetchPypi { 13 13 pname = "Adafruit-PlatformDetect"; 14 14 inherit version; 15 - sha256 = "sha256-XnB6aSTKRV72WjcXx9jPZ+FGmCNh6dvwiau7WDlyE5M="; 15 + sha256 = "sha256-fOBs0aPekIvpwbrYxzh1wz7EKGko0Je1f/N5H0DIguw="; 16 16 }; 17 17 18 18 nativeBuildInputs = [
+4
pkgs/development/python-modules/graphviz/default.nix
··· 1 1 { lib 2 + , stdenv 2 3 , buildPythonPackage 3 4 , pythonOlder 4 5 , fetchFromGitHub ··· 57 58 58 59 runHook postCheck 59 60 ''; 61 + 62 + # Too many failures due to attempting to connect to com.apple.fonts daemon 63 + doCheck = !stdenv.isDarwin; 60 64 61 65 meta = with lib; { 62 66 description = "Simple Python interface for Graphviz";
+8 -1
pkgs/development/python-modules/nodeenv/default.nix
··· 1 - { lib, buildPythonPackage, fetchPypi, setuptools }: 1 + { lib, buildPythonPackage, fetchPypi, setuptools, python, which }: 2 2 3 3 buildPythonPackage rec { 4 4 pname = "nodeenv"; ··· 15 15 16 16 # Tests not included in PyPI tarball 17 17 doCheck = false; 18 + 19 + preFixup = '' 20 + substituteInPlace $out/${python.sitePackages}/nodeenv.py \ 21 + --replace '["which", candidate]' '["${lib.getBin which}/bin/which", candidate]' 22 + ''; 23 + 24 + pythonImportsCheck = [ "nodeenv" ]; 18 25 19 26 meta = with lib; { 20 27 description = "Node.js virtual environment builder";
+2 -2
pkgs/development/python-modules/pypandoc/default.nix
··· 4 4 5 5 buildPythonPackage rec { 6 6 pname = "pypandoc"; 7 - version = "1.7.4"; 7 + version = "1.7.5"; 8 8 9 9 src = fetchPypi { 10 10 inherit pname version; 11 - sha256 = "sha256-KN4j9kbZ6ARAPGth180yptdso1arx563IXvb/2dI+G4="; 11 + sha256 = "sha256-gCwmquF7ZBNsbQBpSdjOGDp9TZ+9Ty0FHmb0+59FylA="; 12 12 }; 13 13 14 14 patches = [
+3 -3
pkgs/development/tools/misc/grcov/default.nix
··· 2 2 3 3 rustPlatform.buildRustPackage rec { 4 4 pname = "grcov"; 5 - version = "0.8.8"; 5 + version = "0.8.9"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "mozilla"; 9 9 repo = pname; 10 10 rev = "v${version}"; 11 - sha256 = "sha256-OITtZdI9d5zQVI02s5gJF9lWCjZZgE7YZRfFROU040o="; 11 + sha256 = "sha256-VSjKZoK/o05kYX5mRCnaS6r/+4dZep9Bp9Im1Zw7piM="; 12 12 }; 13 13 14 - cargoSha256 = "sha256-AZVkS/huEsA1wdVB/xUGCCjY5AWJxaU1DD/OlEURw/c="; 14 + cargoSha256 = "sha256-7I0BizeDbikpog0YG/X8vwoO4PGE1qYzRTWTr0RUQws="; 15 15 16 16 # tests do not find grcov path correctly 17 17 checkFlags = let
+3 -3
pkgs/development/tools/rust/cargo-flash/default.nix
··· 10 10 11 11 rustPlatform.buildRustPackage rec { 12 12 pname = "cargo-flash"; 13 - version = "0.12.0"; 13 + version = "0.12.1"; 14 14 15 15 src = fetchFromGitHub { 16 16 owner = "probe-rs"; 17 17 repo = pname; 18 18 rev = "v${version}"; 19 - sha256 = "0s49q8x0iscy9rgn9zgymyg39cqm251a99m341znjn55lap3pdl8"; 19 + sha256 = "sha256-bd0TY8bdpLHLCdDQgJeJvqjAcSF67+LGSNx8yafYbys="; 20 20 }; 21 21 22 - cargoSha256 = "0rb4s5bwjs7hri636r2viva96a6z9qjv9if6i220j9yglrvi7c8i"; 22 + cargoSha256 = "sha256-bx2N8zP7BmqU6oM/7Nf2i9S1uNWItReQMD59vtG1RKE="; 23 23 24 24 nativeBuildInputs = [ pkg-config rustfmt ]; 25 25 buildInputs = [ libusb1 ] ++ lib.optionals stdenv.isDarwin [ AppKit ];
+3 -3
pkgs/development/tools/sentry-cli/default.nix
··· 9 9 }: 10 10 rustPlatform.buildRustPackage rec { 11 11 pname = "sentry-cli"; 12 - version = "1.74.2"; 12 + version = "1.74.3"; 13 13 14 14 src = fetchFromGitHub { 15 15 owner = "getsentry"; 16 16 repo = "sentry-cli"; 17 17 rev = version; 18 - sha256 = "sha256-1A/c5HiXtT6xUTxVInv9DbbCsqpu8iCJ7I0A9wFeaQ0="; 18 + sha256 = "sha256-savbS/1j6PJqmkk6c+XMOUEkrLZNU2p0YbN8rHfz2po="; 19 19 }; 20 20 doCheck = false; 21 21 ··· 25 25 buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security SystemConfiguration ]; 26 26 nativeBuildInputs = [ pkg-config ]; 27 27 28 - cargoSha256 = "sha256-z++t+Zt40az11z/xhobvvbbSNUBpnMzqlRzoOuYgY2U="; 28 + cargoSha256 = "sha256-7B8cmrDYufhlIMv2r6TSD+C8NLE2Juewgy4XYYr+QKs="; 29 29 30 30 meta = with lib; { 31 31 homepage = "https://docs.sentry.io/cli/";
+54
pkgs/tools/misc/plfit/default.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , fetchpatch 5 + , cmake 6 + , python ? null 7 + , swig 8 + , llvmPackages 9 + }: 10 + 11 + stdenv.mkDerivation rec { 12 + pname = "plfit"; 13 + version = "0.9.3"; 14 + 15 + src = fetchFromGitHub { 16 + owner = "ntamas"; 17 + repo = "plfit"; 18 + rev = version; 19 + hash = "sha256-y4n6AlGtuuUuA+33oF7lGOYuKSqea4GMSJlv9PaSpQ8="; 20 + }; 21 + 22 + patches = [ 23 + # https://github.com/ntamas/plfit/pull/41 24 + (fetchpatch { 25 + name = "use-cmake-install-full-dir.patch"; 26 + url = "https://github.com/ntamas/plfit/commit/d0e77c80e6e899298240e6be465cf580603f6ee2.patch"; 27 + hash = "sha256-wi3qCp6ZQtrKuM7XDA6xCXunCiqsyhnkxmg2eSmxjYM="; 28 + }) 29 + ]; 30 + 31 + nativeBuildInputs = [ 32 + cmake 33 + ] ++ lib.optionals (!isNull python) [ 34 + python 35 + swig 36 + ]; 37 + 38 + cmakeFlags = [ 39 + "-DPLFIT_USE_OPENMP=ON" 40 + ] ++ lib.optionals (!isNull python) [ 41 + "-DPLFIT_COMPILE_PYTHON_MODULE=ON" 42 + ]; 43 + 44 + buildInputs = lib.optionals stdenv.cc.isClang [ 45 + llvmPackages.openmp 46 + ]; 47 + 48 + meta = with lib; { 49 + description = "Fitting power-law distributions to empirical data"; 50 + homepage = "https://github.com/ntamas/plfit"; 51 + license = licenses.gpl2Plus; 52 + maintainers = with maintainers; [ dotlambda ]; 53 + }; 54 + }
+107 -12
pkgs/tools/misc/pre-commit/default.nix
··· 1 - { lib, python3Packages }: 1 + { lib 2 + , python3Packages 3 + , fetchFromGitHub 4 + # tests 5 + , cargo 6 + , dotnet-sdk 7 + , git 8 + , go 9 + , nodejs 10 + }: 2 11 3 12 with python3Packages; 4 13 buildPythonPackage rec { 5 14 pname = "pre-commit"; 6 - version = "2.17.0"; 15 + version = "2.18.1"; 7 16 format = "setuptools"; 8 17 9 18 disabled = pythonOlder "3.6"; 10 19 11 - src = fetchPypi { 12 - inherit version; 13 - pname = "pre_commit"; 14 - sha256 = "c1a8040ff15ad3d648c70cc3e55b93e4d2d5b687320955505587fd79bbaed06a"; 20 + src = fetchFromGitHub { 21 + owner = "pre-commit"; 22 + repo = "pre-commit"; 23 + rev = "v${version}"; 24 + sha256 = "sha256-d/ukUTjNgpqr6IeDJHDaOXQm0EdsX+vq0sVX7HG3gSE="; 15 25 }; 16 26 17 27 patches = [ ··· 32 42 importlib-resources 33 43 ]; 34 44 35 - # slow and impure 36 - doCheck = false; 45 + checkInputs = [ 46 + cargo 47 + dotnet-sdk 48 + git 49 + go 50 + nodejs 51 + pytest-env 52 + pytest-xdist 53 + pytestCheckHook 54 + re-assert 55 + ]; 37 56 38 - preFixup = '' 39 - substituteInPlace $out/${python.sitePackages}/pre_commit/resources/hook-tmpl \ 57 + doCheck = true; 58 + 59 + postPatch = '' 60 + substituteInPlace pre_commit/resources/hook-tmpl \ 40 61 --subst-var-by pre-commit $out 41 - substituteInPlace $out/${python.sitePackages}/pre_commit/languages/python.py \ 62 + substituteInPlace pre_commit/languages/python.py \ 42 63 --subst-var-by virtualenv ${virtualenv} 43 - substituteInPlace $out/${python.sitePackages}/pre_commit/languages/node.py \ 64 + substituteInPlace pre_commit/languages/node.py \ 44 65 --subst-var-by nodeenv ${nodeenv} 66 + 67 + patchShebangs pre_commit/resources/hook-tmpl 45 68 ''; 69 + 70 + pytestFlagsArray = [ 71 + "--numprocesses $NIX_BUILD_CORES" 72 + "--forked" 73 + ]; 74 + 75 + preCheck = '' 76 + export GIT_AUTHOR_NAME=test GIT_COMMITTER_NAME=test \ 77 + GIT_AUTHOR_EMAIL=test@example.com GIT_COMMITTER_EMAIL=test@example.com \ 78 + VIRTUALENV_NO_DOWNLOAD=1 PRE_COMMIT_NO_CONCURRENCY=1 LANG=en_US.UTF-8 79 + 80 + git init -b master 81 + 82 + export HOME=$(mktemp -d) 83 + 84 + python -m venv --system-site-packages venv 85 + source "$PWD/venv/bin/activate" 86 + #$out/bin/pre-commit install 87 + python setup.py develop 88 + ''; 89 + 90 + postCheck = '' 91 + deactivate 92 + ''; 93 + 94 + disabledTests = [ 95 + # ERROR: The install method you used for conda--probably either `pip install conda` 96 + # or `easy_install conda`--is not compatible with using conda as an application. 97 + "test_conda_" 98 + "test_local_conda_" 99 + 100 + # /build/pytest-of-nixbld/pytest-0/test_install_ruby_with_version0/rbenv-2.7.2/libexec/rbenv-init: 101 + # /usr/bin/env: bad interpreter: No such file or directory 102 + "ruby" 103 + 104 + # network 105 + "test_additional_dependencies_roll_forward" 106 + "test_additional_golang_dependencies_installed" 107 + "test_additional_node_dependencies_installed" 108 + "test_additional_rust_cli_dependencies_installed" 109 + "test_additional_rust_lib_dependencies_installed" 110 + "test_dart_hook" 111 + "test_dotnet_hook" 112 + "test_golang_hook" 113 + "test_golang_hook_still_works_when_gobin_is_set" 114 + "test_installs_without_links_outside_env" 115 + "test_local_dart_additional_dependencies" 116 + "test_local_golang_additional_dependencies" 117 + "test_local_lua_additional_dependencies" 118 + "test_local_perl_additional_dependencies" 119 + "test_local_rust_additional_dependencies" 120 + "test_lua_hook" 121 + "test_perl_hook" 122 + "test_r_hook" 123 + "test_r_inline_hook" 124 + "test_r_local_with_additional_dependencies_hook" 125 + "test_r_with_additional_dependencies_hook" 126 + "test_run_a_node_hook_default_version" 127 + "test_run_versioned_node_hook" 128 + 129 + # python2, no explanation needed 130 + "python2" 131 + "test_switch_language_versions_doesnt_clobber" 132 + 133 + # docker 134 + "test_run_a_docker_hook" 135 + 136 + # i don't know why these fail 137 + "test_install_existing_hooks_no_overwrite" 138 + "test_installed_from_venv" 139 + "test_uninstall_restores_legacy_hooks" 140 + ]; 46 141 47 142 pythonImportsCheck = [ 48 143 "pre_commit"
+2 -2
pkgs/tools/networking/mosh/default.nix
··· 11 11 sha256 = "05hjhlp6lk8yjcy59zywpf0r6s0h0b9zxq0lw66dh9x8vxrhaq6s"; 12 12 }; 13 13 14 - nativeBuildInputs = [ autoreconfHook pkg-config makeWrapper protobuf ]; 15 - buildInputs = [ protobuf ncurses zlib openssl bash-completion perlPackages.perl ] 14 + nativeBuildInputs = [ autoreconfHook pkg-config makeWrapper protobuf perlPackages.perl ]; 15 + buildInputs = [ protobuf ncurses zlib openssl bash-completion ] 16 16 ++ lib.optional withUtempter libutempter; 17 17 18 18 strictDeps = true;
+9 -11
pkgs/tools/networking/smartdns/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, openssl }: 1 + { lib, stdenv, fetchFromGitHub, openssl, testVersion, smartdns }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "smartdns"; 5 - version = "35"; 5 + version = "36"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "pymumu"; 9 9 repo = pname; 10 10 rev = "Release${version}"; 11 - sha256 = "sha256-5822qe3mdn4wPO8fHW5AsgMA7xbJnMjZn9DbiMU3GX0="; 11 + sha256 = "sha256-sjrRPmTJRCUnMrA08M/VdYhL7/OfQY30/t1loLPSrlQ="; 12 12 }; 13 13 14 14 buildInputs = [ openssl ]; 15 15 16 - # Force the systemd service file to be regenerated from it's template. This 17 - # file is erroneously added in version 35 and it has already been deleted from 18 - # upstream's git repository. So this "postPatch" phase can be deleted in next 19 - # release. 20 - postPatch = '' 21 - rm -f systemd/smartdns.service 22 - ''; 23 - 24 16 makeFlags = [ 25 17 "PREFIX=${placeholder "out"}" 26 18 "SYSTEMDSYSTEMUNITDIR=${placeholder "out"}/lib/systemd/system" 27 19 "RUNSTATEDIR=/run" 20 + # by default it is the build time... weird... https://github.com/pymumu/smartdns/search?q=ver 21 + "VER=${version}" 28 22 ]; 29 23 30 24 installFlags = [ "SYSCONFDIR=${placeholder "out"}/etc" ]; 25 + 26 + passthru.tests = { 27 + version = testVersion { package = smartdns; }; 28 + }; 31 29 32 30 meta = with lib; { 33 31 description =
+4
pkgs/top-level/all-packages.nix
··· 9077 9077 9078 9078 pleroma = callPackage ../servers/pleroma { }; 9079 9079 9080 + plfit = callPackage ../tools/misc/plfit { 9081 + python = null; 9082 + }; 9083 + 9080 9084 ploticus = callPackage ../tools/graphics/ploticus { 9081 9085 libpng = libpng12; 9082 9086 };
+4
pkgs/top-level/python-packages.nix
··· 6384 6384 6385 6385 plexwebsocket = callPackage ../development/python-modules/plexwebsocket { }; 6386 6386 6387 + plfit = toPythonModule (pkgs.plfit.override { 6388 + inherit (self) python; 6389 + }); 6390 + 6387 6391 plone-testing = callPackage ../development/python-modules/plone-testing { }; 6388 6392 6389 6393 plotly = callPackage ../development/python-modules/plotly { };