Merge pull request #113098 from SuperSandro2000/fix-collection12

This commit is contained in:
Sandro 2021-02-17 13:28:08 +01:00 committed by GitHub
commit 83c9307474
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
18 changed files with 58 additions and 39 deletions

View File

@ -1,6 +1,6 @@
{ ripgrep, git, fzf, makeWrapper, vim_configurable, vimPlugins, fetchFromGitHub, writeTextDir { ripgrep, git, fzf, makeWrapper, vim_configurable, vimPlugins, fetchFromGitHub
, lib, stdenv, runCommandNoCC, remarshal, formats, spacevim_config ? import ./init.nix }: , lib, stdenv, formats, spacevim_config ? import ./init.nix }:
with stdenv;
let let
format = formats.toml {}; format = formats.toml {};
vim-customized = vim_configurable.customize { vim-customized = vim_configurable.customize {
@ -11,7 +11,7 @@ let
vimrcConfig.packages.myVimPackage = with vimPlugins; { start = [ ]; }; vimrcConfig.packages.myVimPackage = with vimPlugins; { start = [ ]; };
}; };
spacevimdir = format.generate "init.toml" spacevim_config; spacevimdir = format.generate "init.toml" spacevim_config;
in mkDerivation rec { in stdenv.mkDerivation rec {
pname = "spacevim"; pname = "spacevim";
version = "1.5.0"; version = "1.5.0";
src = fetchFromGitHub { src = fetchFromGitHub {

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, wrapQtAppsHook, cmake, bzip2, qtbase, qttools, libnova, proj, libpng, openjpeg } : { lib, stdenv, fetchFromGitHub, wrapQtAppsHook, cmake, bzip2, qtbase, qttools, libnova, proj, libpng, openjpeg }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "1.2.6.1"; version = "1.2.6.1";
@ -13,26 +13,29 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake qttools wrapQtAppsHook ]; nativeBuildInputs = [ cmake qttools wrapQtAppsHook ];
buildInputs = [ bzip2 qtbase libnova proj openjpeg libpng ]; buildInputs = [ bzip2 qtbase libnova proj openjpeg libpng ];
cmakeFlags = [ "-DOPENJPEG_INCLUDE_DIR=${openjpeg.dev}/include/openjpeg-2.3" ] cmakeFlags = [ "-DOPENJPEG_INCLUDE_DIR=${openjpeg.dev}/include/openjpeg-${lib.versions.majorMinor openjpeg.version}" ]
++ lib.optionals stdenv.isDarwin [ "-DLIBNOVA_LIBRARY=${libnova}/lib/libnova.dylib" ]; ++ lib.optionals stdenv.isDarwin [ "-DLIBNOVA_LIBRARY=${libnova}/lib/libnova.dylib" ];
postInstall = if stdenv.isDarwin then '' postInstall =
mkdir -p "$out/Applications" "$out/XyGrib/XyGrib.app/Contents/Resources" if stdenv.isDarwin then ''
cp "../data/img/xyGrib.icns" "$out/XyGrib/XyGrib.app/Contents/Resources/xyGrib.icns" mkdir -p "$out/Applications" "$out/XyGrib/XyGrib.app/Contents/Resources"
mv $out/XyGrib/XyGrib.app $out/Applications cp "../data/img/xyGrib.icns" "$out/XyGrib/XyGrib.app/Contents/Resources/xyGrib.icns"
wrapQtApp "$out/Applications/XyGrib.app/Contents/MacOS/XyGrib" mv $out/XyGrib/XyGrib.app $out/Applications
'' else '' wrapQtApp "$out/Applications/XyGrib.app/Contents/MacOS/XyGrib"
wrapQtApp $out/XyGrib/XyGrib '' else ''
mkdir -p $out/bin wrapQtApp $out/XyGrib/XyGrib
ln -s $out/XyGrib/XyGrib $out/bin/xygrib mkdir -p $out/bin
''; ln -s $out/XyGrib/XyGrib $out/bin/xygrib
'';
meta = with lib; { meta = with lib; {
homepage = "https://opengribs.org"; homepage = "https://opengribs.org";
description = "Weather Forecast Visualization"; description = "Weather Forecast Visualization";
longDescription = ''XyGrib is a leading opensource weather visualization package. longDescription = ''
It interacts with OpenGribs's Grib server providing a choice XyGrib is a leading opensource weather visualization package.
of global and large area atmospheric and wave models.''; It interacts with OpenGribs's Grib server providing a choice
of global and large area atmospheric and wave models.
'';
license = licenses.gpl3; license = licenses.gpl3;
platforms = platforms.all; platforms = platforms.all;
maintainers = with maintainers; [ j03 SuperSandro2000 ]; maintainers = with maintainers; [ j03 SuperSandro2000 ];

View File

@ -15,6 +15,8 @@ buildGoModule rec {
subPackages = [ "." ]; subPackages = [ "." ];
buildFlagsArray = [ "-ldflags=-s -w" ];
meta = with lib; { meta = with lib; {
description = "Synchronize your DNS to multiple providers from a simple DSL"; description = "Synchronize your DNS to multiple providers from a simple DSL";
homepage = "https://stackexchange.github.io/dnscontrol/"; homepage = "https://stackexchange.github.io/dnscontrol/";

View File

@ -17,7 +17,7 @@ buildPythonApplication rec {
export ASPELL_CONF="dict-dir ${aspellDicts.en}/lib/aspell" export ASPELL_CONF="dict-dir ${aspellDicts.en}/lib/aspell"
''; '';
# tries to run not rully installed script # tries to run not fully installed script
disabledTests = [ "test_command" ]; disabledTests = [ "test_command" ];
pythonImportsCheck = [ "codespell_lib" ]; pythonImportsCheck = [ "codespell_lib" ];

View File

@ -1,8 +1,9 @@
{ buildPythonPackage, fetchPypi, lib, requests, pytestCheckHook, mock }: { buildPythonPackage, fetchPypi, pythonAtLeast, lib, requests, pytestCheckHook, mock }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "google-i18n-address"; pname = "google-i18n-address";
version = "2.4.0"; version = "2.4.0";
disabled = pythonAtLeast "3.9";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
@ -15,7 +16,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "Google's i18n address data packaged for Python"; description = "Google's i18n address data packaged for Python";
homepage = "https://pypi.org/project/google-i18n-address/"; homepage = "https://github.com/mirumee/google-i18n-address";
maintainers = with maintainers; [ SuperSandro2000 ]; maintainers = with maintainers; [ SuperSandro2000 ];
license = licenses.bsd3; license = licenses.bsd3;
}; };

View File

@ -6,14 +6,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "hstspreload"; pname = "hstspreload";
version = "2020.12.22"; version = "2021.2.1";
disabled = isPy27; disabled = isPy27;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "sethmlarson"; owner = "sethmlarson";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "1jzcw4clmpbyw67pzskms5rq5b7285iwh42jzc4ly6jz9amggdzc"; sha256 = "sha256-R6tqGxGd6JymFgQX+deDPOtlKlwUjL7uf+zGdNxUW/s=";
}; };
# tests require network connection # tests require network connection
@ -25,6 +25,6 @@ buildPythonPackage rec {
description = "Chromium HSTS Preload list as a Python package and updated daily"; description = "Chromium HSTS Preload list as a Python package and updated daily";
homepage = "https://github.com/sethmlarson/hstspreload"; homepage = "https://github.com/sethmlarson/hstspreload";
license = licenses.bsd3; license = licenses.bsd3;
maintainers = [ maintainers.costrouc ]; maintainers = with maintainers; [ costrouc SuperSandro2000 ];
}; };
} }

View File

@ -36,6 +36,7 @@ buildPythonPackage rec {
"_generator" "_generator"
"show_versions" "show_versions"
"test_make_imbalanced_iris" "test_make_imbalanced_iris"
"test_rusboost[SAMME.R]"
]; ];
meta = with lib; { meta = with lib; {

View File

@ -64,14 +64,17 @@ buildPythonPackage rec {
PATH=$out/bin:$PATH PATH=$out/bin:$PATH
''; '';
# disable tests which touch network disabledTests = [
disabledTests = '' # disable tests which touch network
"test_discover" "test_discover"
"test_filtered_compressed_cache" "test_filtered_compressed_cache"
"test_get_dir" "test_get_dir"
"test_remote_cat" "test_remote_cat"
"http" "http"
'';
# broken test
"test_read_pattern_with"
];
meta = with lib; { meta = with lib; {
description = "Data load and catalog system"; description = "Data load and catalog system";

View File

@ -45,5 +45,7 @@ buildPythonPackage rec {
license= licenses.bsd3; license= licenses.bsd3;
maintainers = with maintainers; [ evax ]; maintainers = with maintainers; [ evax ];
platforms = platforms.unix; platforms = platforms.unix;
# incompatible with nixpkgs scikitlearn version
broken = true;
}; };
} }

View File

@ -20,7 +20,6 @@
# Test Inputs # Test Inputs
, glibcLocales , glibcLocales
, hypothesis , hypothesis
, moto
, pytestCheckHook , pytestCheckHook
# Darwin inputs # Darwin inputs
, runtimeShell , runtimeShell
@ -54,7 +53,7 @@ buildPythonPackage rec {
xlwt xlwt
]; ];
checkInputs = [ pytestCheckHook glibcLocales moto hypothesis ]; checkInputs = [ pytestCheckHook glibcLocales hypothesis ];
# doesn't work with -Werror,-Wunused-command-line-argument # doesn't work with -Werror,-Wunused-command-line-argument
# https://github.com/NixOS/nixpkgs/issues/39687 # https://github.com/NixOS/nixpkgs/issues/39687

View File

@ -41,5 +41,7 @@ buildPythonPackage rec {
changelog = "https://github.com/skorch-dev/skorch/blob/master/CHANGES.md"; changelog = "https://github.com/skorch-dev/skorch/blob/master/CHANGES.md";
license = licenses.bsd3; license = licenses.bsd3;
maintainers = with maintainers; [ bcdarwin ]; maintainers = with maintainers; [ bcdarwin ];
# TypeError: __init__() got an unexpected keyword argument 'iid'
broken = true;
}; };
} }

View File

@ -81,6 +81,7 @@ buildPythonPackage rec {
homepage = "https://github.com/TileDB-Inc/TileDB-Py"; homepage = "https://github.com/TileDB-Inc/TileDB-Py";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ fridh ]; maintainers = with maintainers; [ fridh ];
# tiledb/core.cc:556:30: error: struct std::array<long unsigned int, 2> has no member named second
broken = true;
}; };
} }

View File

@ -45,6 +45,6 @@ buildPythonPackage rec {
description = "PyTorch vision library"; description = "PyTorch vision library";
homepage = "https://pytorch.org/"; homepage = "https://pytorch.org/";
license = licenses.bsd3; license = licenses.bsd3;
maintainers = with maintainers; [ ericsagnes SuperSandro2000 ]; maintainers = with maintainers; [ ericsagnes ];
}; };
} }

View File

@ -1,21 +1,24 @@
{ lib, fetchFromGitHub, buildPythonPackage, isPy27 { lib, fetchFromGitHub, buildPythonPackage, isPy27
, awkward0, backports_lzma, cachetools, lz4, pandas , awkward0, backports_lzma, cachetools, lz4, pandas
, pytestCheckHook, pytestrunner, pkgconfig, mock , pytestCheckHook, pkgconfig, mock
, numpy, requests, uproot3-methods, xxhash, zstandard , numpy, requests, uproot3-methods, xxhash, zstandard
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "uproot3"; pname = "uproot3";
version = "3.14.2"; version = "3.14.4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "scikit-hep"; owner = "scikit-hep";
repo = "uproot3"; repo = "uproot3";
rev = version; rev = version;
sha256 = "sha256-6/e+qMgwyFUo8MRRTAaGp9WLPxE2fqMEK4paq26Epzc="; sha256 = "sha256-hVJpKdYvyoCPyqgZzKYp30SvkYm+HWSNBdd9bYCYACE=";
}; };
nativeBuildInputs = [ pytestrunner ]; postPatch = ''
substituteInPlace setup.py \
--replace '"pytest-runner"' ""
'';
propagatedBuildInputs = [ propagatedBuildInputs = [
awkward0 awkward0

View File

@ -7,9 +7,7 @@
, ruby , ruby
, which , which
, fetchFromGitHub , fetchFromGitHub
, fetchgit
, fetchurl , fetchurl
, fetchzip
, fetchpatch , fetchpatch
, llvmPackages , llvmPackages
, rustPlatform , rustPlatform

View File

@ -33,6 +33,8 @@ stdenv.mkDerivation rec {
done done
''; '';
outputs = [ "out" "dev" ];
meta = with lib; { meta = with lib; {
description = "A tool for automating interactive applications"; description = "A tool for automating interactive applications";
homepage = "http://expect.sourceforge.net/"; homepage = "http://expect.sourceforge.net/";

View File

@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
substituteInPlace src/parallel --subst-var-by coreutils ${coreutils} substituteInPlace src/parallel --subst-var-by coreutils ${coreutils}
''; '';
outputs = [ "out" "man" ]; outputs = [ "out" "man" "doc" ];
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
buildInputs = [ perl procps ]; buildInputs = [ perl procps ];

View File

@ -23,6 +23,8 @@ stdenv.mkDerivation rec {
enableParallelBuilding = false; enableParallelBuilding = false;
outputs = [ "out" "doc" "dev" ];
meta = with lib; { meta = with lib; {
description = "Source code renderer with syntax highlighting"; description = "Source code renderer with syntax highlighting";
longDescription = '' longDescription = ''