Merge pull request #114121 from SuperSandro2000/fix-collection18

This commit is contained in:
Sandro 2021-02-23 20:15:52 +01:00 committed by GitHub
commit c01e05e65b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 31 additions and 59 deletions

View File

@ -1,4 +1,4 @@
{ version ? "release", stdenv, lib, substituteAll, fetchFromGitHub, go-ethereum }: { version ? "release", stdenv, lib, fetchFromGitHub, go-ethereum }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "bee-clef"; pname = "bee-clef";

View File

@ -1,22 +1,15 @@
{ lib, stdenv, fetchurl, fetchFromGitHub, fetchpatch, pkg-config, qt5 { lib, stdenv, fetchFromGitHub, pkg-config, qt5
, avahi, boost, libopus, libsndfile, protobuf, speex, libcap , avahi, boost, libopus, libsndfile, protobuf, speex, libcap
, alsaLib, python3 , alsaLib, python3
, rnnoise , rnnoise
, jackSupport ? false, libjack2 ? null , jackSupport ? false, libjack2
, speechdSupport ? false, speechd ? null , speechdSupport ? false, speechd
, pulseSupport ? false, libpulseaudio ? null , pulseSupport ? false, libpulseaudio
, iceSupport ? false, zeroc-ice ? null , iceSupport ? false, zeroc-ice
, grpcSupport ? false, grpc ? null, c-ares ? null, abseil-cpp ? null, which ? null , grpcSupport ? false, grpc, c-ares, abseil-cpp, which
, nixosTests , nixosTests
}: }:
assert jackSupport -> libjack2 != null;
assert speechdSupport -> speechd != null;
assert pulseSupport -> libpulseaudio != null;
assert iceSupport -> zeroc-ice != null;
assert grpcSupport -> (grpc != null && c-ares != null && abseil-cpp != null && which != null);
with lib;
let let
generic = overrides: source: qt5.mkDerivation (source // overrides // { generic = overrides: source: qt5.mkDerivation (source // overrides // {
pname = overrides.type; pname = overrides.type;
@ -42,8 +35,8 @@ let
"CONFIG+=no-bundled-opus" "CONFIG+=no-bundled-opus"
"CONFIG+=no-bundled-speex" "CONFIG+=no-bundled-speex"
"DEFINES+=PLUGIN_PATH=${placeholder "out"}/lib/mumble" "DEFINES+=PLUGIN_PATH=${placeholder "out"}/lib/mumble"
] ++ optional (!speechdSupport) "CONFIG+=no-speechd" ] ++ lib.optional (!speechdSupport) "CONFIG+=no-speechd"
++ optional jackSupport "CONFIG+=no-oss CONFIG+=no-alsa CONFIG+=jackaudio" ++ lib.optional jackSupport "CONFIG+=no-oss CONFIG+=no-alsa CONFIG+=jackaudio"
++ (overrides.configureFlags or [ ]); ++ (overrides.configureFlags or [ ]);
preConfigure = '' preConfigure = ''
@ -64,11 +57,9 @@ let
runHook postInstall runHook postInstall
''; '';
enableParallelBuilding = true;
passthru.tests.connectivity = nixosTests.mumble; passthru.tests.connectivity = nixosTests.mumble;
meta = { meta = with lib; {
description = "Low-latency, high quality voice chat software"; description = "Low-latency, high quality voice chat software";
homepage = "https://mumble.info"; homepage = "https://mumble.info";
license = licenses.bsd3; license = licenses.bsd3;
@ -82,16 +73,16 @@ let
nativeBuildInputs = [ qt5.qttools ]; nativeBuildInputs = [ qt5.qttools ];
buildInputs = [ libopus libsndfile speex qt5.qtsvg rnnoise ] buildInputs = [ libopus libsndfile speex qt5.qtsvg rnnoise ]
++ optional stdenv.isLinux alsaLib ++ lib.optional stdenv.isLinux alsaLib
++ optional jackSupport libjack2 ++ lib.optional jackSupport libjack2
++ optional speechdSupport speechd ++ lib.optional speechdSupport speechd
++ optional pulseSupport libpulseaudio; ++ lib.optional pulseSupport libpulseaudio;
configureFlags = [ configureFlags = [
"CONFIG+=no-server" "CONFIG+=no-server"
]; ];
NIX_CFLAGS_COMPILE = optional speechdSupport "-I${speechd}/include/speech-dispatcher"; NIX_CFLAGS_COMPILE = lib.optional speechdSupport "-I${speechd}/include/speech-dispatcher";
installPhase = '' installPhase = ''
# bin stuff # bin stuff
@ -113,18 +104,18 @@ let
server = source: generic { server = source: generic {
type = "murmur"; type = "murmur";
postPatch = optional iceSupport '' postPatch = lib.optional iceSupport ''
grep -Rl '/usr/share/Ice' . | xargs sed -i 's,/usr/share/Ice/,${zeroc-ice.dev}/share/ice/,g' grep -Rl '/usr/share/Ice' . | xargs sed -i 's,/usr/share/Ice/,${zeroc-ice.dev}/share/ice/,g'
''; '';
configureFlags = [ configureFlags = [
"CONFIG+=no-client" "CONFIG+=no-client"
] ++ optional (!iceSupport) "CONFIG+=no-ice" ] ++ lib.optional (!iceSupport) "CONFIG+=no-ice"
++ optional grpcSupport "CONFIG+=grpc"; ++ lib.optional grpcSupport "CONFIG+=grpc";
buildInputs = [ libcap ] buildInputs = [ libcap ]
++ optional iceSupport zeroc-ice ++ lib.optional iceSupport zeroc-ice
++ optionals grpcSupport [ grpc c-ares abseil-cpp which ]; ++ lib.optionals grpcSupport [ grpc c-ares abseil-cpp which ];
installPhase = '' installPhase = ''
# bin stuff # bin stuff

View File

@ -1,10 +1,7 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, pythonOlder , pythonOlder
, pytestrunner
, typing-extensions
, wrapt , wrapt
, aioitertools , aioitertools
, aiohttp , aiohttp

View File

@ -28,10 +28,6 @@ buildPythonPackage rec {
urllib3 urllib3
]; ];
postPatch = ''
substituteInPlace setup.py --replace "docutils>=0.10,<0.16" "docutils>=0.10"
'';
checkInputs = [ mock nose ]; checkInputs = [ mock nose ];
checkPhase = '' checkPhase = ''

View File

@ -52,8 +52,7 @@ buildPythonPackage rec {
postPatch = '' postPatch = ''
sed -i setup.py -e "/pip>=/c\'pip'," sed -i setup.py -e "/pip>=/c\'pip',"
substituteInPlace setup.py \ substituteInPlace setup.py \
--replace 'typing==3.6.4' 'typing' \ --replace 'typing==3.6.4' 'typing'
--replace 'attrs>=19.3.0,<20.3.0' 'attrs'
''; '';
checkPhase = '' checkPhase = ''

View File

@ -22,8 +22,6 @@ buildPythonPackage rec {
postPatch = '' postPatch = ''
substituteInPlace requirements/test.txt \ substituteInPlace requirements/test.txt \
--replace "pytest-sugar" "" --replace "pytest-sugar" ""
substituteInPlace requirements/default.txt \
--replace "amqp==2.5.1" "amqp~=2.5"
''; '';
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -16,7 +16,6 @@
, Kajiki , Kajiki
, mock , mock
, sqlalchemy , sqlalchemy
, uwsgi
, virtualenv , virtualenv
}: }:

View File

@ -29,10 +29,6 @@ buildPythonPackage rec {
pytest tests/unit pytest tests/unit
''; '';
postPatch = ''
substituteInPlace setup.py --replace "pyyaml~=3.12" "pyyaml~=5.1"
'';
meta = with lib; { meta = with lib; {
homepage = "https://github.com/awslabs/aws-serverlessrepo-python"; homepage = "https://github.com/awslabs/aws-serverlessrepo-python";
description = "Helpers for working with the AWS Serverless Application Repository"; description = "Helpers for working with the AWS Serverless Application Repository";

View File

@ -1,5 +1,5 @@
{ lib, stdenv, buildPythonPackage, fetchPypi, fetchpatch, substituteAll, pythonOlder { lib, stdenv, buildPythonPackage, fetchPypi, fetchpatch, substituteAll, pythonOlder
, geos, pytest, cython , geos, pytestCheckHook, cython
, numpy , numpy
}: }:
@ -18,10 +18,10 @@ buildPythonPackage rec {
cython cython
]; ];
checkInputs = [ pytest ];
propagatedBuildInputs = [ numpy ]; propagatedBuildInputs = [ numpy ];
checkInputs = [ pytestCheckHook ];
# environment variable used in shapely/_buildcfg.py # environment variable used in shapely/_buildcfg.py
GEOS_LIBRARY_PATH = "${geos}/lib/libgeos_c${stdenv.hostPlatform.extensions.sharedLibrary}"; GEOS_LIBRARY_PATH = "${geos}/lib/libgeos_c${stdenv.hostPlatform.extensions.sharedLibrary}";
@ -38,12 +38,14 @@ buildPythonPackage rec {
}) })
]; ];
# Disable the tests that improperly try to use the built extensions preCheck = ''
checkPhase = ''
rm -r shapely # prevent import of local shapely rm -r shapely # prevent import of local shapely
py.test tests
''; '';
disabledTests = [
"test_collection"
];
meta = with lib; { meta = with lib; {
description = "Geometric objects, predicates, and operations"; description = "Geometric objects, predicates, and operations";
maintainers = with maintainers; [ knedlsepp ]; maintainers = with maintainers; [ knedlsepp ];

View File

@ -21,11 +21,6 @@ buildPythonPackage rec {
sha256 = "26af5c1a3f2b76aab8c3200310f0fc783790ec5a231ffeec102e620acdd6262e"; sha256 = "26af5c1a3f2b76aab8c3200310f0fc783790ec5a231ffeec102e620acdd6262e";
}; };
# nixpkgs version of moto is >=1.2.0, remove version pin to fix build
postPatch = ''
substituteInPlace ./setup.py --replace "moto==0.4.31" "moto"
'';
# moto>=1.0.0 is backwards-incompatible and some tests fail with it, # moto>=1.0.0 is backwards-incompatible and some tests fail with it,
# so disable tests for now # so disable tests for now
doCheck = false; doCheck = false;

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, fetchgit, fetchurl, runCommand, git, cmake, pkg-config { lib, stdenv, fetchgit, fetchurl, git, cmake, pkg-config
, openssl, zlib, boost, grpc, c-ares, abseil-cpp, protobuf3_8, libnsl }: , openssl, zlib, boost, grpc, c-ares, abseil-cpp, protobuf3_8, libnsl }:
let let

View File

@ -1,7 +1,6 @@
{ lib { lib
, buildPythonApplication , buildPythonApplication
, fetchFromGitHub , fetchFromGitHub
, pkgs
, boto3 , boto3
}: }:

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, coreutils, bash, btrfs-progs, openssh, perl, perlPackages { lib, stdenv, fetchurl, bash, btrfs-progs, openssh, perl, perlPackages
, util-linux, asciidoc, asciidoctor, mbuffer, makeWrapper }: , util-linux, asciidoc, asciidoctor, mbuffer, makeWrapper }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {