Merge pull request #115631 from SuperSandro2000/fix-collection26

This commit is contained in:
Sandro 2021-03-11 01:59:35 +01:00 committed by GitHub
commit 6c1afc1b99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 66 additions and 66 deletions

View file

@ -16,12 +16,11 @@ mkDerivation rec {
fetchSubmodules = true; fetchSubmodules = true;
}; };
buildInputs = [ phonon phonon-backend-vlc qtbase qtdeclarative qtx11extras mpv ];
nativeBuildInputs = [ qmake qttools ]; nativeBuildInputs = [ qmake qttools ];
qmakeFlags = [ "DEFINES+=APP_GOOGLE_API_KEY=${withAPIKey}" ]; buildInputs = [ phonon phonon-backend-vlc qtbase qtdeclarative qtx11extras mpv ];
enableParallelBuilding = true; qmakeFlags = [ "DEFINES+=APP_GOOGLE_API_KEY=${withAPIKey}" ];
meta = with lib; { meta = with lib; {
description = "Stand-alone YouTube video player"; description = "Stand-alone YouTube video player";

View file

@ -37,6 +37,6 @@ mkDerivation rec {
description = "Free and modular front-end framework for developing fast and compelling user experiences"; description = "Free and modular front-end framework for developing fast and compelling user experiences";
license = licenses.lgpl2Plus; license = licenses.lgpl2Plus;
maintainers = with maintainers; [ dotlambda ]; maintainers = with maintainers; [ dotlambda ];
broken = lib.versionOlder qtbase.version "5.14.0"; broken = versionOlder qtbase.version "5.14.0";
}; };
} }

View file

@ -4,23 +4,20 @@
, xorgproto, gst_all_1, setfile , xorgproto, gst_all_1, setfile
, libGLSupported ? lib.elem stdenv.hostPlatform.system lib.platforms.mesaPlatforms , libGLSupported ? lib.elem stdenv.hostPlatform.system lib.platforms.mesaPlatforms
, withMesa ? libGLSupported , withMesa ? libGLSupported
, libGLU ? null, libGL ? null , libGLU, libGL
, compat24 ? false, compat26 ? true, unicode ? true , compat24 ? false, compat26 ? true, unicode ? true
, withGtk2 ? true , withGtk2 ? true
, withWebKit ? false, webkitgtk ? null , withWebKit ? false, webkitgtk
, AGL ? null, Carbon ? null, Cocoa ? null, Kernel ? null, QTKit ? null , AGL, Carbon, Cocoa, Kernel, QTKit
}: }:
with lib; with lib;
assert withMesa -> libGLU != null && libGL != null;
assert withWebKit -> webkitgtk != null;
assert assertMsg (withGtk2 -> withWebKit == false) "wxGTK30: You cannot enable withWebKit when using withGtk2."; assert assertMsg (withGtk2 -> withWebKit == false) "wxGTK30: You cannot enable withWebKit when using withGtk2.";
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "3.0.5";
pname = "wxwidgets"; pname = "wxwidgets";
version = "3.0.5";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "wxWidgets"; owner = "wxWidgets";
@ -29,16 +26,16 @@ stdenv.mkDerivation rec {
sha256 = "1l33629ifx2dl2j71idqbd2qb6zb1d566ijpkvz6irrr50s6gbx7"; sha256 = "1l33629ifx2dl2j71idqbd2qb6zb1d566ijpkvz6irrr50s6gbx7";
}; };
nativeBuildInputs = [ pkg-config ];
buildInputs = [ buildInputs = [
libXinerama libSM libXxf86vm xorgproto gst_all_1.gstreamer gst_all_1.gst-plugins-base libXinerama libSM libXxf86vm xorgproto gst_all_1.gstreamer gst_all_1.gst-plugins-base
] ++ optionals withGtk2 [ gtk2 ] ] ++ optional withGtk2 gtk2
++ optional (!withGtk2) gtk3 ++ optional (!withGtk2) gtk3
++ optional withMesa libGLU ++ optional withMesa libGLU
++ optional withWebKit webkitgtk ++ optional withWebKit webkitgtk
++ optionals stdenv.isDarwin [ setfile Carbon Cocoa Kernel QTKit ]; ++ optionals stdenv.isDarwin [ setfile Carbon Cocoa Kernel QTKit ];
nativeBuildInputs = [ pkg-config ];
propagatedBuildInputs = optional stdenv.isDarwin AGL; propagatedBuildInputs = optional stdenv.isDarwin AGL;
patches = [ patches = [

View file

@ -1,8 +1,8 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, setuptools_scm , setuptools-scm
, pytest , pytestCheckHook
, pytestcov , pytestcov
, sqlalchemy , sqlalchemy
, tornado , tornado
@ -29,11 +29,11 @@ buildPythonPackage rec {
}; };
buildInputs = [ buildInputs = [
setuptools_scm setuptools-scm
]; ];
checkInputs = [ checkInputs = [
pytest pytestCheckHook
pytestcov pytestcov
sqlalchemy sqlalchemy
tornado tornado
@ -51,18 +51,11 @@ buildPythonPackage rec {
setuptools setuptools
] ++ lib.optional (!isPy3k) futures; ] ++ lib.optional (!isPy3k) futures;
checkPhase = ''
py.test
'';
pythonImportsCheck = [ "apscheduler" ]; pythonImportsCheck = [ "apscheduler" ];
# Somehow it cannot find pytestcov
doCheck = false;
meta = with lib; { meta = with lib; {
description = "A Python library that lets you schedule your Python code to be executed"; description = "A Python library that lets you schedule your Python code to be executed";
homepage = "https://pypi.python.org/pypi/APScheduler/"; homepage = "https://github.com/agronholm/apscheduler";
license = licenses.mit; license = licenses.mit;
}; };
} }

View file

@ -48,5 +48,7 @@ buildPythonPackage rec {
homepage = "https://github.com/spacetelescope/asdf"; homepage = "https://github.com/spacetelescope/asdf";
license = licenses.bsd3; license = licenses.bsd3;
maintainers = [ maintainers.costrouc ]; maintainers = [ maintainers.costrouc ];
# many ValueError in tests
broken = true;
}; };
} }

View file

@ -23,7 +23,7 @@ buildPythonPackage rec {
sha256 = "sha256-sLmSnPXboAUXjXRqgDb88AJVUPSYylTbYYczIjhHg7w="; sha256 = "sha256-sLmSnPXboAUXjXRqgDb88AJVUPSYylTbYYczIjhHg7w=";
}; };
buildInputs = [ pytest-runner ]; nativeBuildInputs = [ pytest-runner ];
propagatedBuildInputs = [ cairocffi cssselect2 defusedxml pillow tinycss2 ]; propagatedBuildInputs = [ cairocffi cssselect2 defusedxml pillow tinycss2 ];

View file

@ -54,6 +54,7 @@ buildPythonPackage rec {
license = licenses.lgpl3; license = licenses.lgpl3;
homepage = "https://scitools.org.uk/cartopy/docs/latest/"; homepage = "https://scitools.org.uk/cartopy/docs/latest/";
maintainers = with maintainers; [ mredaelli ]; maintainers = with maintainers; [ mredaelli ];
# following tests fail: test_eccentric_globe and test_ellipse_globe
broken = true;
}; };
} }

View file

@ -63,5 +63,7 @@ buildPythonPackage rec {
homepage = "https://clifford.readthedocs.io"; homepage = "https://clifford.readthedocs.io";
license = licenses.bsd3; license = licenses.bsd3;
maintainers = [ maintainers.costrouc ]; maintainers = [ maintainers.costrouc ];
# many TypeError's in tests
broken = true;
}; };
} }

View file

@ -29,5 +29,6 @@ buildPythonPackage rec {
description = "Deploy Dask on job schedulers like PBS, SLURM, and SGE"; description = "Deploy Dask on job schedulers like PBS, SLURM, and SGE";
license = licenses.bsd3; license = licenses.bsd3;
maintainers = [ maintainers.costrouc ]; maintainers = [ maintainers.costrouc ];
broken = true;
}; };
} }

View file

@ -35,7 +35,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "Stackdriver Monitoring API client library"; description = "Stackdriver Monitoring API client library";
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python"; homepage = "https://github.com/googleapis/python-monitoring";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ]; maintainers = with maintainers; [ SuperSandro2000 ];
}; };

View file

@ -7,7 +7,7 @@
, decorator , decorator
, nose , nose
, krb5Full , krb5Full
, darwin , GSS
, parameterized , parameterized
, shouldbe , shouldbe
, cython , cython
@ -44,7 +44,7 @@ buildPythonPackage rec {
]; ];
buildInputs = lib.optionals stdenv.isDarwin [ buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.GSS GSS
]; ];
checkInputs = [ checkInputs = [

View file

@ -3,7 +3,6 @@
, fetchFromGitHub , fetchFromGitHub
, pythonOlder , pythonOlder
, hypothesis , hypothesis
, doCheck ? true
, dataclasses , dataclasses
, hypothesmith , hypothesmith
, pytestCheckHook , pytestCheckHook
@ -29,12 +28,13 @@ buildPythonPackage rec {
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
propagatedBuildInputs = [ hypothesis typing-inspect pyyaml ] propagatedBuildInputs = [ hypothesis typing-extensions typing-inspect pyyaml ]
++ lib.optional (pythonOlder "3.7") dataclasses; ++ lib.optional (pythonOlder "3.7") dataclasses;
checkInputs = [ black hypothesmith isort pytestCheckHook ]; checkInputs = [ black hypothesmith isort pytestCheckHook ];
inherit doCheck; # can't run tests due to circular dependency on hypothesmith -> licst
doCheck = false;
preCheck = '' preCheck = ''
python -m libcst.codegen.generate visitors python -m libcst.codegen.generate visitors
@ -44,8 +44,7 @@ buildPythonPackage rec {
pythonImportsCheck = [ "libcst" ]; pythonImportsCheck = [ "libcst" ];
meta = with lib; { meta = with lib; {
description = description = "A Concrete Syntax Tree (CST) parser and serializer library for Python.";
"A Concrete Syntax Tree (CST) parser and serializer library for Python.";
homepage = "https://github.com/Instagram/libcst"; homepage = "https://github.com/Instagram/libcst";
license = with licenses; [ mit asl20 psfl ]; license = with licenses; [ mit asl20 psfl ];
maintainers = with maintainers; [ ruuda SuperSandro2000 ]; maintainers = with maintainers; [ ruuda SuperSandro2000 ];

View file

@ -1,5 +1,5 @@
{ stdenv, lib, fetchFromGitHub, fetchpatch, buildPythonPackage, python, { stdenv, lib, fetchFromGitHub, fetchpatch, buildPythonPackage, python,
cudaSupport ? false, cudatoolkit ? null, cudnn ? null, nccl ? null, magma ? null, cudaSupport ? false, cudatoolkit, cudnn, nccl, magma,
mklDnnSupport ? true, useSystemNccl ? true, mklDnnSupport ? true, useSystemNccl ? true,
MPISupport ? false, mpi, MPISupport ? false, mpi,
buildDocs ? false, buildDocs ? false,
@ -30,8 +30,6 @@
isPy3k, pythonOlder }: isPy3k, pythonOlder }:
# assert that everything needed for cuda is present and that the correct cuda versions are used # assert that everything needed for cuda is present and that the correct cuda versions are used
assert !cudaSupport || cudatoolkit != null;
assert cudnn == null || cudatoolkit != null;
assert !cudaSupport || (let majorIs = lib.versions.major cudatoolkit.version; assert !cudaSupport || (let majorIs = lib.versions.major cudatoolkit.version;
in majorIs == "9" || majorIs == "10" || majorIs == "11"); in majorIs == "9" || majorIs == "10" || majorIs == "11");
@ -297,12 +295,13 @@ in buildPythonPackage rec {
install_name_tool -change @rpath/libc10.dylib $lib/lib/libc10.dylib $lib/lib/libshm.dylib install_name_tool -change @rpath/libc10.dylib $lib/lib/libc10.dylib $lib/lib/libshm.dylib
''; '';
meta = with lib; {
meta = {
description = "Open source, prototype-to-production deep learning platform"; description = "Open source, prototype-to-production deep learning platform";
homepage = "https://pytorch.org/"; homepage = "https://pytorch.org/";
license = lib.licenses.bsd3; license = licenses.bsd3;
platforms = with lib.platforms; linux ++ lib.optionals (!cudaSupport) darwin; platforms = with platforms; linux ++ lib.optionals (!cudaSupport) darwin;
maintainers = with lib.maintainers; [ danieldk teh thoughtpolice tscholak ]; # tscholak esp. for darwin-related builds maintainers = with maintainers; [ danieldk teh thoughtpolice tscholak ]; # tscholak esp. for darwin-related builds
# error: use of undeclared identifier 'noU'; did you mean 'no'?
broken = stdenv.isDarwin;
}; };
} }

View file

@ -33,6 +33,12 @@ buildPythonPackage rec {
sha256 = "ad62bfd31e677d39984449d9c68e233da2776b80894a988a2421aad412e4c44f"; sha256 = "ad62bfd31e677d39984449d9c68e233da2776b80894a988a2421aad412e4c44f";
}; };
postPatch = ''
substituteInPlace setup.py \
--replace "'pyOpenSSL>=16.2.0,<20.0.0'," "'pyOpenSSL'," \
--replace 'pytz<2021.0' 'pytz'
'';
propagatedBuildInputs = [ propagatedBuildInputs = [
azure-storage-blob azure-storage-blob
asn1crypto asn1crypto
@ -55,11 +61,6 @@ buildPythonPackage rec {
urllib3 urllib3
]; ];
postPatch = ''
substituteInPlace setup.py \
--replace "'pyOpenSSL>=16.2.0,<20.0.0'," "'pyOpenSSL',"
'';
# tests require encrypted secrets, see # tests require encrypted secrets, see
# https://github.com/snowflakedb/snowflake-connector-python/tree/master/.github/workflows/parameters # https://github.com/snowflakedb/snowflake-connector-python/tree/master/.github/workflows/parameters
doCheck = false; doCheck = false;

View file

@ -27,5 +27,6 @@ buildPythonPackage rec {
description = "Snowflake SQLAlchemy Dialect"; description = "Snowflake SQLAlchemy Dialect";
homepage = "https://www.snowflake.net/"; homepage = "https://www.snowflake.net/";
license = licenses.asl20; license = licenses.asl20;
maintainers = [ ];
}; };
} }

View file

@ -1,13 +1,14 @@
{ lib, stdenv { lib
, stdenv
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, fetchpatch , fetchpatch
, argh , argh
, pathtools , pathtools
, pyyaml , pyyaml
, pkgs
, pytest-cov , pytest-cov
, pytestCheckHook , pytestCheckHook
, CoreServices
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -27,8 +28,7 @@ buildPythonPackage rec {
}) })
]; ];
buildInputs = lib.optionals stdenv.isDarwin buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
[ pkgs.darwin.apple_sdk.frameworks.CoreServices ];
propagatedBuildInputs = [ propagatedBuildInputs = [
argh argh
@ -48,6 +48,7 @@ buildPythonPackage rec {
homepage = "https://github.com/gorakhargosh/watchdog"; homepage = "https://github.com/gorakhargosh/watchdog";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ goibhniu ]; maintainers = with maintainers; [ goibhniu ];
# error: use of undeclared identifier 'kFSEventStreamEventFlagItemCloned'
broken = stdenv.isDarwin;
}; };
} }

View file

@ -60,5 +60,7 @@ stdenv.mkDerivation rec {
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
platforms = platforms.unix; platforms = platforms.unix;
maintainers = [ maintainers.babariviere ]; maintainers = [ maintainers.babariviere ];
# ld: symbol(s) not found for architecture x86_64
broken = stdenv.isDarwin;
}; };
} }

View file

@ -11,16 +11,16 @@ buildGoModule rec {
version = "2.0.30"; version = "2.0.30";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "trezor"; owner = "trezor";
repo = "trezord-go"; repo = "trezord-go";
rev = "v${version}"; rev = "v${version}";
sha256 = "1hzvk0wfgg7b4wpqjk3738yqxlv3pj5i7zxwm0jady2h97hmrqrr"; sha256 = "1hzvk0wfgg7b4wpqjk3738yqxlv3pj5i7zxwm0jady2h97hmrqrr";
}; };
vendorSha256 = "0wb959xzyvr5zzjvkfqc422frmf97q5nr460f02wwx0pj6ch0y61"; vendorSha256 = "0wb959xzyvr5zzjvkfqc422frmf97q5nr460f02wwx0pj6ch0y61";
propagatedBuildInputs = lib.optionals stdenv.isLinux [ trezor-udev-rules ] propagatedBuildInputs = lib.optionals stdenv.isLinux [ trezor-udev-rules ]
++ lib.optionals stdenv.isDarwin [ AppKit ]; ++ lib.optionals stdenv.isDarwin [ AppKit ];
meta = with lib; { meta = with lib; {
description = "Trezor Communication Daemon aka Trezor Bridge"; description = "Trezor Communication Daemon aka Trezor Bridge";

View file

@ -33,8 +33,7 @@ rustPlatform.buildRustPackage rec {
cargoBuildFlags = [ "--all" ]; cargoBuildFlags = [ "--all" ];
meta = with lib; { meta = with lib; {
description = description = "Early stage event processing system for unstructured data with rich support for structural pattern matching, filtering and transformation";
"Early stage event processing system for unstructured data with rich support for structural pattern matching, filtering and transformation";
homepage = "https://www.tremor.rs/"; homepage = "https://www.tremor.rs/";
license = licenses.asl20; license = licenses.asl20;
platforms = [ "x86_64-linux" ]; platforms = [ "x86_64-linux" ];

View file

@ -32,6 +32,6 @@ buildGoModule rec {
You can feed it standard input, any number of files or any number of directories to recurse into. You can feed it standard input, any number of files or any number of directories to recurse into.
''; '';
license = licenses.bsd3; license = licenses.bsd3;
maintainers = with maintainers; [ zowoq ]; maintainers = with maintainers; [ zowoq SuperSandro2000 ];
}; };
} }

View file

@ -2897,7 +2897,10 @@ in {
gspread = callPackage ../development/python-modules/gspread { }; gspread = callPackage ../development/python-modules/gspread { };
gssapi = callPackage ../development/python-modules/gssapi { inherit (pkgs) darwin krb5Full; }; gssapi = callPackage ../development/python-modules/gssapi {
inherit (pkgs) krb5Full;
inherit (pkgs.darwin.apple_sdk.frameworks) GSS;
};
gst-python = callPackage ../development/python-modules/gst-python { gst-python = callPackage ../development/python-modules/gst-python {
inherit (pkgs) meson; inherit (pkgs) meson;
@ -3134,9 +3137,7 @@ in {
hypothesis = if isPy3k then callPackage ../development/python-modules/hypothesis { } else self.hypothesis_4; hypothesis = if isPy3k then callPackage ../development/python-modules/hypothesis { } else self.hypothesis_4;
hypothesmith = callPackage ../development/python-modules/hypothesmith { hypothesmith = callPackage ../development/python-modules/hypothesmith { };
libcst = self.libcst.override { doCheck = false; };
};
hyppo = callPackage ../development/python-modules/hyppo { }; hyppo = callPackage ../development/python-modules/hyppo { };
@ -8472,7 +8473,9 @@ in {
wasmer = callPackage ../development/python-modules/wasmer { }; wasmer = callPackage ../development/python-modules/wasmer { };
watchdog = callPackage ../development/python-modules/watchdog { }; watchdog = callPackage ../development/python-modules/watchdog {
inherit (pkgs.darwin.apple_sdk.frameworks) CoreServices;
};
waterfurnace = callPackage ../development/python-modules/waterfurnace { }; waterfurnace = callPackage ../development/python-modules/waterfurnace { };