Merge staging-next into staging

This commit is contained in:
Frederik Rietdijk
2020-08-24 11:56:04 +02:00
139 changed files with 1638 additions and 845 deletions

View File

@@ -10,11 +10,11 @@
buildPythonPackage rec {
pname = "awkward1";
version = "0.2.31";
version = "0.2.33";
src = fetchPypi {
inherit pname version;
sha256 = "9b235ce4164c8472d4f0ac0ad4fe7980968659be9e955c44a922d04f93766e12";
sha256 = "bf3de210d0a88fb14a97c296f54ed2d5b686a785bb5fd7a31277f22b8daa9513";
};
nativeBuildInputs = [ cmake ];

View File

@@ -3,6 +3,7 @@
, fetchPypi
, requests
, google_auth
, google-auth-oauthlib
}:
buildPythonPackage rec {
@@ -14,14 +15,12 @@ buildPythonPackage rec {
sha256 = "e04f1a6267b3929fc1600424c5ec83906d439672cafdd61a9d5b916a139f841c";
};
propagatedBuildInputs = [ requests ];
propagatedBuildInputs = [ requests google_auth google-auth-oauthlib ];
meta = with stdenv.lib; {
description = "Google Spreadsheets client library";
homepage = "https://github.com/burnash/gspread";
license = licenses.mit;
# missing multiple google libraries
broken = true; # 2020-08-15
};
# No tests included

View File

@@ -58,6 +58,10 @@ in buildPythonPackage rec {
xlwt
];
# doesn't work with -Werror,-Wunused-command-line-argument
# https://github.com/NixOS/nixpkgs/issues/39687
hardeningDisable = optional stdenv.cc.isClang "strictoverflow";
# For OSX, we need to add a dependency on libcxx, which provides
# `complex.h` and other libraries that pandas depends on to build.
postPatch = optionalString isDarwin ''

View File

@@ -1,18 +1,20 @@
{ stdenv, buildPythonPackage, fetchFromGitHub
{ stdenv, buildPythonPackage, fetchFromGitHub, isPy27
, glibcLocales, git
, mock, nose, markdown, lxml, typogrify
, jinja2, pygments, docutils, pytz, unidecode, six, dateutil, feedgenerator
, blinker, pillow, beautifulsoup4, markupsafe }:
, blinker, pillow, beautifulsoup4, markupsafe, pandoc }:
buildPythonPackage rec {
pname = "pelican";
version = "4.2.0";
version = "4.5.0";
disabled = isPy27;
src = fetchFromGitHub {
owner = "getpelican";
repo = "pelican";
rev = version;
sha256 = "0w9nqdw2jmqc6kqwg4rh6irr5k6j7hk8axg6vgd137rs50v62yv5";
sha256 = "0p8p84fcpkr19d54dhxvldd8ijbg334wmrmkr99pnbrdl1gf64qi";
# Remove unicode file names which leads to different checksums on HFS+
# vs. other filesystems because of unicode normalisation.
extraPostFetch = ''
@@ -24,15 +26,15 @@ buildPythonPackage rec {
# Exclude custom locale test, which files were removed above to fix the source checksum
checkPhase = ''
nosetests -sv --exclude=test_custom_locale_generation_works pelican
nosetests -s \
--exclude=test_custom_locale_generation_works \
--exclude=test_log_filter \
pelican
'';
buildInputs = [
glibcLocales
# Note: Pelican has to adapt to a changed CLI of pandoc before enabling this
# again. Compare https://github.com/getpelican/pelican/pull/2252.
# Version 4.2.0 is incompatible with our current pandoc version.
# pandoc
pandoc
git
mock
markdown
@@ -46,21 +48,16 @@ buildPythonPackage rec {
checkInputs = [
nose
pandoc
];
postPatch= ''
substituteInPlace pelican/tests/test_pelican.py \
--replace "'git'" "'${git}/bin/git'"
# Markdown-3.1 changed footnote separator to colon
# https://github.com/getpelican/pelican/issues/2493#issuecomment-491723744
sed -i '/test_article_with_footnote/i\
@unittest.skip("")' pelican/tests/test_readers.py
'';
LC_ALL="en_US.UTF-8";
# We only want to patch shebangs in /bin, and not those
# of the project scripts that are created by Pelican.
# See https://github.com/NixOS/nixpkgs/issues/30116

View File

@@ -0,0 +1,22 @@
{ lib, fetchPypi, python3Packages }:
python3Packages.buildPythonPackage rec {
pname = "sabyenc3";
version = "4.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "0zfj1k4zij8ph8jwkq4d6i6axym8cil16yijxshqla5163d1031z";
};
# tests are not included in pypi distribution
doCheck = false;
meta = {
description = "yEnc Decoding for Python 3";
homepage = "https://github.com/sabnzbd/sabyenc/";
license = lib.licenses.lgpl3;
maintainers = [ lib.maintainers.lovek323 ];
};
}

View File

@@ -0,0 +1,46 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, isPy27
, pytestCheckHook
, future
, imageio
, numpy
, pandas
, pytorch
, tensorflow-tensorboard
}:
buildPythonPackage rec {
pname = "test-tube";
version = "0.7.5";
disabled = isPy27;
src = fetchFromGitHub {
owner = "williamFalcon";
repo = pname;
rev = version;
sha256 = "0zpvlp1ybp2dhgap8jsalpfdyg8ycjhlfi3xrdf5dqffqvh2yhp2";
};
checkInputs = [
pytestCheckHook
];
propagatedBuildInputs = [
future
imageio
numpy
pandas
pytorch
tensorflow-tensorboard
];
meta = with lib; {
homepage = "https://github.com/williamFalcon/test-tube";
description = "Framework-agnostic library to track and parallelize hyperparameter search in machine learning experiments";
license = licenses.mit;
maintainers = [ maintainers.tbenst ];
};
}

View File

@@ -0,0 +1,30 @@
{ lib
, buildPythonPackage
, fetchPypi
, click
, distro
}:
buildPythonPackage rec {
pname = "userpath";
version = "1.4.1";
src = fetchPypi {
inherit pname version;
sha256="0mfjmvx286z1dmnrc7bm65x8gj8qrmkcyagl0vf5ywfq0bm48591";
};
propagatedBuildInputs = [ click distro ];
# test suite is difficult to emulate in sandbox due to shell manipulation
doCheck = false;
pythonImportsCheck = [ "click" "userpath" ];
meta = with lib; {
description = "Cross-platform tool for adding locations to the user PATH";
homepage = "https://github.com/ofek/userpath";
license = [ licenses.asl20 licenses.mit ];
maintainers = with maintainers; [ yevhenshymotiuk ];
};
}