git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #114121 from SuperSandro2000/fix-collection18
commitc01e05e65b856d824e9227d1947fb1af36403fdd authorSandro <sandro.jaeckel@gmail.com> dateTue 23 Feb 2021, 20:15 (6 years ago) parent8ac27aae688a01
13 files changed+31−59
pkgs/applications/networking/bee/bee-clef.nix+1−1 pkgs/applications/networking/mumble/default.nix+19−28 pkgs/development/python-modules/aiobotocore/default.nix−3 pkgs/development/python-modules/botocore/default.nix−4 pkgs/development/python-modules/chalice/default.nix+1−2 pkgs/development/python-modules/kombu/default.nix−2 pkgs/development/python-modules/pecan/default.nix−1 pkgs/development/python-modules/serverlessrepo/default.nix−4 pkgs/development/python-modules/shapely/default.nix+8−6 pkgs/development/python-modules/smart_open/default.nix−5 pkgs/servers/rippled/default.nix+1−1 pkgs/tools/admin/aws-mfa/default.nix−1 pkgs/tools/backup/btrbk/default.nix+1−1
pkgs/applications/networking/bee/bee-clef.nix+1−1
@@ -1,4 +1,4 @@
1−{ version ? "release", stdenv, lib, substituteAll, fetchFromGitHub, go-ethereum }:
1+{ version ? "release", stdenv, lib, fetchFromGitHub, go-ethereum }:
22
33stdenv.mkDerivation rec {
44 pname = "bee-clef";
pkgs/applications/networking/mumble/default.nix+19−28
@@ -1,22 +1,15 @@
1−{ lib, stdenv, fetchurl, fetchFromGitHub, fetchpatch, pkg-config, qt5
1+{ lib, stdenv, fetchFromGitHub, pkg-config, qt5
22, avahi, boost, libopus, libsndfile, protobuf, speex, libcap
33, alsaLib, python3
44, rnnoise
5−, jackSupport ? false, libjack2 ? null
6−, speechdSupport ? false, speechd ? null
7−, pulseSupport ? false, libpulseaudio ? null
8−, iceSupport ? false, zeroc-ice ? null
9−, grpcSupport ? false, grpc ? null, c-ares ? null, abseil-cpp ? null, which ? null
5+, jackSupport ? false, libjack2
6+, speechdSupport ? false, speechd
7+, pulseSupport ? false, libpulseaudio
8+, iceSupport ? false, zeroc-ice
9+, grpcSupport ? false, grpc, c-ares, abseil-cpp, which
1010, nixosTests
1111}:
1212
13−assert jackSupport -> libjack2 != null;
14−assert speechdSupport -> speechd != null;
15−assert pulseSupport -> libpulseaudio != null;
16−assert iceSupport -> zeroc-ice != null;
17−assert grpcSupport -> (grpc != null && c-ares != null && abseil-cpp != null && which != null);
18−
19−with lib;
2013let
2114 generic = overrides: source: qt5.mkDerivation (source // overrides // {
2215 pname = overrides.type;
@@ -42,8 +35,8 @@ let
4235 "CONFIG+=no-bundled-opus"
4336 "CONFIG+=no-bundled-speex"
4437 "DEFINES+=PLUGIN_PATH=${placeholder "out"}/lib/mumble"
45− ] ++ optional (!speechdSupport) "CONFIG+=no-speechd"
46− ++ optional jackSupport "CONFIG+=no-oss CONFIG+=no-alsa CONFIG+=jackaudio"
38+ ] ++ lib.optional (!speechdSupport) "CONFIG+=no-speechd"
39+ ++ lib.optional jackSupport "CONFIG+=no-oss CONFIG+=no-alsa CONFIG+=jackaudio"
4740 ++ (overrides.configureFlags or [ ]);
4841
4942 preConfigure = ''
@@ -64,11 +57,9 @@ let
6457 runHook postInstall
6558 '';
6659
67− enableParallelBuilding = true;
68−
6960 passthru.tests.connectivity = nixosTests.mumble;
7061
71− meta = {
62+ meta = with lib; {
7263 description = "Low-latency, high quality voice chat software";
7364 homepage = "https://mumble.info";
7465 license = licenses.bsd3;
@@ -82,16 +73,16 @@ let
8273
8374 nativeBuildInputs = [ qt5.qttools ];
8475 buildInputs = [ libopus libsndfile speex qt5.qtsvg rnnoise ]
85− ++ optional stdenv.isLinux alsaLib
86− ++ optional jackSupport libjack2
87− ++ optional speechdSupport speechd
88− ++ optional pulseSupport libpulseaudio;
76+ ++ lib.optional stdenv.isLinux alsaLib
77+ ++ lib.optional jackSupport libjack2
78+ ++ lib.optional speechdSupport speechd
79+ ++ lib.optional pulseSupport libpulseaudio;
8980
9081 configureFlags = [
9182 "CONFIG+=no-server"
9283 ];
9384
94− NIX_CFLAGS_COMPILE = optional speechdSupport "-I${speechd}/include/speech-dispatcher";
85+ NIX_CFLAGS_COMPILE = lib.optional speechdSupport "-I${speechd}/include/speech-dispatcher";
9586
9687 installPhase = ''
9788 # bin stuff
@@ -113,18 +104,18 @@ let
113104 server = source: generic {
114105 type = "murmur";
115106
116− postPatch = optional iceSupport ''
107+ postPatch = lib.optional iceSupport ''
117108 grep -Rl '/usr/share/Ice' . | xargs sed -i 's,/usr/share/Ice/,${zeroc-ice.dev}/share/ice/,g'
118109 '';
119110
120111 configureFlags = [
121112 "CONFIG+=no-client"
122− ] ++ optional (!iceSupport) "CONFIG+=no-ice"
123− ++ optional grpcSupport "CONFIG+=grpc";
113+ ] ++ lib.optional (!iceSupport) "CONFIG+=no-ice"
114+ ++ lib.optional grpcSupport "CONFIG+=grpc";
124115
125116 buildInputs = [ libcap ]
126− ++ optional iceSupport zeroc-ice
127− ++ optionals grpcSupport [ grpc c-ares abseil-cpp which ];
117+ ++ lib.optional iceSupport zeroc-ice
118+ ++ lib.optionals grpcSupport [ grpc c-ares abseil-cpp which ];
128119
129120 installPhase = ''
130121 # bin stuff
pkgs/development/python-modules/aiobotocore/default.nix−3
@@ -1,10 +1,7 @@
11{ lib
2−
32, buildPythonPackage
43, fetchPypi
54, pythonOlder
6−, pytestrunner
7−, typing-extensions
85, wrapt
96, aioitertools
107, aiohttp
pkgs/development/python-modules/botocore/default.nix−4
@@ -28,10 +28,6 @@ buildPythonPackage rec {
2828 urllib3
2929 ];
3030
31− postPatch = ''
32− substituteInPlace setup.py --replace "docutils>=0.10,<0.16" "docutils>=0.10"
33− '';
34−
3531 checkInputs = [ mock nose ];
3632
3733 checkPhase = ''
pkgs/development/python-modules/chalice/default.nix+1−2
@@ -52,8 +52,7 @@ buildPythonPackage rec {
5252 postPatch = ''
5353 sed -i setup.py -e "/pip>=/c\'pip',"
5454 substituteInPlace setup.py \
55− --replace 'typing==3.6.4' 'typing' \
56− --replace 'attrs>=19.3.0,<20.3.0' 'attrs'
55+ --replace 'typing==3.6.4' 'typing'
5756 '';
5857
5958 checkPhase = ''
pkgs/development/python-modules/kombu/default.nix−2
@@ -22,8 +22,6 @@ buildPythonPackage rec {
2222 postPatch = ''
2323 substituteInPlace requirements/test.txt \
2424 --replace "pytest-sugar" ""
25− substituteInPlace requirements/default.txt \
26− --replace "amqp==2.5.1" "amqp~=2.5"
2725 '';
2826
2927 propagatedBuildInputs = [
pkgs/development/python-modules/pecan/default.nix−1
@@ -16,7 +16,6 @@
1616, Kajiki
1717, mock
1818, sqlalchemy
19−, uwsgi
2019, virtualenv
2120}:
2221
pkgs/development/python-modules/serverlessrepo/default.nix−4
@@ -29,10 +29,6 @@ buildPythonPackage rec {
2929 pytest tests/unit
3030 '';
3131
32− postPatch = ''
33− substituteInPlace setup.py --replace "pyyaml~=3.12" "pyyaml~=5.1"
34− '';
35−
3632 meta = with lib; {
3733 homepage = "https://github.com/awslabs/aws-serverlessrepo-python";
3834 description = "Helpers for working with the AWS Serverless Application Repository";
pkgs/development/python-modules/shapely/default.nix+8−6
@@ -1,5 +1,5 @@
11{ lib, stdenv, buildPythonPackage, fetchPypi, fetchpatch, substituteAll, pythonOlder
2−, geos, pytest, cython
2+, geos, pytestCheckHook, cython
33, numpy
44}:
55
@@ -18,10 +18,10 @@ buildPythonPackage rec {
1818 cython
1919 ];
2020
21− checkInputs = [ pytest ];
22−
2321 propagatedBuildInputs = [ numpy ];
2422
23+ checkInputs = [ pytestCheckHook ];
24+
2525 # environment variable used in shapely/_buildcfg.py
2626 GEOS_LIBRARY_PATH = "${geos}/lib/libgeos_c${stdenv.hostPlatform.extensions.sharedLibrary}";
2727
@@ -38,12 +38,14 @@ buildPythonPackage rec {
3838 })
3939 ];
4040
41− # Disable the tests that improperly try to use the built extensions
42− checkPhase = ''
41+ preCheck = ''
4342 rm -r shapely # prevent import of local shapely
44− py.test tests
4543 '';
4644
45+ disabledTests = [
46+ "test_collection"
47+ ];
48+
4749 meta = with lib; {
4850 description = "Geometric objects, predicates, and operations";
4951 maintainers = with maintainers; [ knedlsepp ];
pkgs/development/python-modules/smart_open/default.nix−5
@@ -21,11 +21,6 @@ buildPythonPackage rec {
2121 sha256 = "26af5c1a3f2b76aab8c3200310f0fc783790ec5a231ffeec102e620acdd6262e";
2222 };
2323
24− # nixpkgs version of moto is >=1.2.0, remove version pin to fix build
25− postPatch = ''
26− substituteInPlace ./setup.py --replace "moto==0.4.31" "moto"
27− '';
28−
2924 # moto>=1.0.0 is backwards-incompatible and some tests fail with it,
3025 # so disable tests for now
3126 doCheck = false;
pkgs/servers/rippled/default.nix+1−1
@@ -1,4 +1,4 @@
1−{ lib, stdenv, fetchFromGitHub, fetchgit, fetchurl, runCommand, git, cmake, pkg-config
1+{ lib, stdenv, fetchgit, fetchurl, git, cmake, pkg-config
22, openssl, zlib, boost, grpc, c-ares, abseil-cpp, protobuf3_8, libnsl }:
33
44let
pkgs/tools/admin/aws-mfa/default.nix−1
@@ -1,7 +1,6 @@
11{ lib
22, buildPythonApplication
33, fetchFromGitHub
4−, pkgs
54, boto3
65}:
76
pkgs/tools/backup/btrbk/default.nix+1−1
@@ -1,4 +1,4 @@
1−{ lib, stdenv, fetchurl, coreutils, bash, btrfs-progs, openssh, perl, perlPackages
1+{ lib, stdenv, fetchurl, bash, btrfs-progs, openssh, perl, perlPackages
22, util-linux, asciidoc, asciidoctor, mbuffer, makeWrapper }:
33
44stdenv.mkDerivation rec {