Merge master into staging-next
This commit is contained in:
@@ -1,14 +1,17 @@
|
||||
{ lib, isPy3k, fetchPypi, buildPythonPackage
|
||||
{ lib, isPy3k, fetchFromGitHub, buildPythonPackage
|
||||
, atpublic }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiosmtpd";
|
||||
version = "1.2";
|
||||
version = "1.2.1";
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1xdfk741pjmz1cm8dsi4n5vq4517i175rm94696m3f7kcgk7xsmp";
|
||||
# Release not published to Pypi
|
||||
src = fetchFromGitHub {
|
||||
owner = "aio-libs";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "14c30dm6jzxiblnsah53fdv68vqhxwvb9x0aq9bc4vcdas747vr7";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{ lib
|
||||
, fetchurl
|
||||
, fetchFromGitHub
|
||||
, buildPythonPackage
|
||||
, pycrypto
|
||||
, paramiko
|
||||
@@ -18,11 +18,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ansible";
|
||||
version = "2.8.2";
|
||||
version = "2.8.4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://releases.ansible.com/ansible/${pname}-${version}.tar.gz";
|
||||
sha256 = "1e5ba829ca0602c55b33da399b06f99b135a34014b661d1c36d8892a1e2d3730";
|
||||
src = fetchFromGitHub {
|
||||
owner = "ansible";
|
||||
repo = "ansible";
|
||||
rev = "v${version}";
|
||||
sha256 = "1fp7zz8awfv70nn8i6x0ggx4472377hm7787x16qv2kz4nb069ki";
|
||||
};
|
||||
|
||||
prePatch = ''
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{ lib, fetchPypi, buildPythonPackage, isPy3k, keyring, pbkdf2, pyaes}:
|
||||
buildPythonPackage rec {
|
||||
pname = "browser-cookie3";
|
||||
version = "0.6.4";
|
||||
version = "0.7.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "16nghwsrv08gz4iiyxsy5lgg5ljgrwkp471m7xnsvhhpb3axmnsc";
|
||||
sha256 = "1f24hsclg1wz2i8aiam91l06qqy0plxhwl615l4qkg35mbw4ry7h";
|
||||
};
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{ lib, buildPythonPackage, fetchPypi
|
||||
, tzlocal, requests, vobject, lxml }:
|
||||
, tzlocal, requests, vobject, lxml, nose }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "caldav";
|
||||
version = "0.6.1";
|
||||
|
||||
propagatedBuildInputs = [ tzlocal requests vobject lxml ];
|
||||
propagatedBuildInputs = [ tzlocal requests vobject lxml nose ];
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
|
||||
30
pkgs/development/python-modules/django-mailman3/default.nix
Normal file
30
pkgs/development/python-modules/django-mailman3/default.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, django-gravatar2, django_compressor
|
||||
, django-allauth, mailmanclient, django, mock
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "django-mailman3";
|
||||
version = "1.2.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0v6c1jhcc212wc2xa314irfcchl05r7nysrcy63dcaan958kmnnx";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
django-gravatar2 django_compressor django-allauth mailmanclient
|
||||
];
|
||||
checkInputs = [ django mock ];
|
||||
|
||||
checkPhase = ''
|
||||
cd $NIX_BUILD_TOP/$sourceRoot
|
||||
PYTHONPATH=.:$PYTHONPATH django-admin.py test --settings=django_mailman3.tests.settings_test
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Django library for Mailman UIs";
|
||||
homepage = https://gitlab.com/mailman/django-mailman3;
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ globin peti ];
|
||||
};
|
||||
}
|
||||
@@ -2,18 +2,21 @@
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytz
|
||||
, pythonOlder
|
||||
, six
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "django-modelcluster";
|
||||
version = "4.4";
|
||||
version = "5.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "02mrs7aapabapfh7h7n71s8r7zxkmad3yk4rdyfwcf0x36326rsr";
|
||||
sha256 = "0zcn1b0lp9dg6xvz8p8v1hrrgqj71izqalqz2dp1nz5rbj3s34x2";
|
||||
};
|
||||
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
doCheck = false;
|
||||
|
||||
propagatedBuildInputs = [ pytz six ];
|
||||
|
||||
@@ -23,14 +23,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "django-silk";
|
||||
version = "3.0.2";
|
||||
version = "3.0.3";
|
||||
|
||||
# pypi tarball doesn't include test project
|
||||
src = fetchFromGitHub {
|
||||
owner = "jazzband";
|
||||
repo = "django-silk";
|
||||
rev = version;
|
||||
sha256 = "1fbaafc2gx01gscdalp6hj6bz4b0cmq59lgmvsydw7jkds4mps7c";
|
||||
sha256 = "0j1r88zv7fvmlnrzr2h65czzdcpvl7n847ra1pfc52bfa4lf8b9j";
|
||||
};
|
||||
# "test_time_taken" tests aren't suitable for reproducible execution, but django's
|
||||
# test runner doesn't have an easy way to ignore tests - so instead prevent it from picking
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ buildPythonPackage, dlib, python, pytest, avxSupport ? true }:
|
||||
{ buildPythonPackage, dlib, python, pytest, more-itertools, avxSupport ? true, lib }:
|
||||
|
||||
buildPythonPackage {
|
||||
inherit (dlib) name src nativeBuildInputs buildInputs meta;
|
||||
@@ -10,9 +10,15 @@ buildPythonPackage {
|
||||
${python.interpreter} nix_run_setup test --no USE_AVX_INSTRUCTIONS
|
||||
'';
|
||||
|
||||
setupPyBuildFlags = [ "--${if avxSupport then "yes" else "no"} USE_AVX_INSTRUCTIONS" ];
|
||||
setupPyBuildFlags = lib.optional avxSupport "--no USE_AVX_INSTRUCTIONS";
|
||||
|
||||
patches = [ ./build-cores.patch ];
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "more-itertools<6.0.0" "more-itertools" \
|
||||
--replace "pytest==3.8" "pytest"
|
||||
'';
|
||||
|
||||
checkInputs = [ pytest more-itertools ];
|
||||
}
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
, fetchurl
|
||||
, dbus
|
||||
, xvfb_run
|
||||
, wrapGAppsHook
|
||||
# , fetchPypi
|
||||
}:
|
||||
|
||||
@@ -32,8 +33,9 @@ buildPythonPackage rec {
|
||||
./nix-support.patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ gobject-introspection dbus xvfb_run ]; # for setup hooks
|
||||
nativeBuildInputs = [ gobject-introspection dbus xvfb_run wrapGAppsHook ]; # for setup hooks
|
||||
propagatedBuildInputs = [ at-spi2-core gtk3 pygobject3 pyatspi pycairo ];
|
||||
strictDeps = false; # issue 56943
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
|
||||
14
pkgs/development/python-modules/flufl/bounce.nix
Normal file
14
pkgs/development/python-modules/flufl/bounce.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{ buildPythonPackage, fetchPypi, atpublic, zope_interface, nose2 }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "flufl.bounce";
|
||||
version = "3.0";
|
||||
|
||||
buildInputs = [ nose2 ];
|
||||
propagatedBuildInputs = [ atpublic zope_interface ];
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0k5kjqa3x6gvwwxyzb2vwi1g1i6asm1zw5fivylxz3d583y4kid2";
|
||||
};
|
||||
}
|
||||
13
pkgs/development/python-modules/flufl/i18n.nix
Normal file
13
pkgs/development/python-modules/flufl/i18n.nix
Normal file
@@ -0,0 +1,13 @@
|
||||
{ buildPythonPackage, fetchPypi, atpublic }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "flufl.i18n";
|
||||
version = "2.0.2";
|
||||
|
||||
propagatedBuildInputs = [ atpublic ];
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1csgds59nx0ann9v2alqr69lakp1cnc1ikmbgn96l6n23js7c2ah";
|
||||
};
|
||||
}
|
||||
13
pkgs/development/python-modules/flufl/lock.nix
Normal file
13
pkgs/development/python-modules/flufl/lock.nix
Normal file
@@ -0,0 +1,13 @@
|
||||
{ buildPythonPackage, fetchPypi, atpublic }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "flufl.lock";
|
||||
version = "3.2";
|
||||
|
||||
propagatedBuildInputs = [ atpublic ];
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0nzzd6l30ff6cwsrlrb94xzfja4wkyrqv3ydc6cz0hdbr766mmm8";
|
||||
};
|
||||
}
|
||||
13
pkgs/development/python-modules/lazr/config.nix
Normal file
13
pkgs/development/python-modules/lazr/config.nix
Normal file
@@ -0,0 +1,13 @@
|
||||
{ buildPythonPackage, fetchPypi, lazr_delegates }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "lazr.config";
|
||||
version = "2.2.1";
|
||||
|
||||
propagatedBuildInputs = [ lazr_delegates ];
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1s7pyvlq06qjrkaw9r6nc290lb095n25ybzgavvy51ygpxkgqxwn";
|
||||
};
|
||||
}
|
||||
15
pkgs/development/python-modules/lazr/delegates.nix
Normal file
15
pkgs/development/python-modules/lazr/delegates.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{ buildPythonPackage, fetchPypi, nose, zope_interface }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "lazr.delegates";
|
||||
version = "2.0.4";
|
||||
|
||||
propagatedBuildInputs = [ nose zope_interface ];
|
||||
|
||||
doCheck = false; # cannot import name 'ClassType' from 'types'
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1rdnl85j9ayp8n85l0ciip621j9dcziz5qnmv2m7krgwgcn31vfx";
|
||||
};
|
||||
}
|
||||
21
pkgs/development/python-modules/mailmanclient/default.nix
Normal file
21
pkgs/development/python-modules/mailmanclient/default.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, six, httplib2 }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "mailmanclient";
|
||||
version = "3.2.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0xsrzdrsmfhnxv68zwm1g6awk7in08k6yhkyd27ipn0mq1wjm5jd";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six httplib2 ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "http://www.gnu.org/software/mailman/";
|
||||
description = "REST client for driving Mailman 3";
|
||||
license = licenses.lgpl3;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ peti globin ];
|
||||
};
|
||||
}
|
||||
@@ -8,11 +8,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "moderngl";
|
||||
version = "5.5.0";
|
||||
version = "5.5.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0x8xblc3zybp7jw9cscpm4r5pmmilj9l4yi1rkxyf0y80kchlxq4";
|
||||
sha256 = "1k2yf2yglzx65gcv2bqql6w6lmgyp3f1jz4ddq9vylf09a8j7fga";
|
||||
};
|
||||
|
||||
disabled = !isPy3k;
|
||||
@@ -23,7 +23,7 @@ buildPythonPackage rec {
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = https://github.com/cprogrammer1994/ModernGL;
|
||||
homepage = https://github.com/moderngl/moderngl;
|
||||
description = "High performance rendering for Python 3";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.linux; # should be mesaPlatforms, darwin build breaks.
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{ lib, fetchurl, pythonPackages, pkgconfig
|
||||
, qmake, qtbase, qtsvg, qtwebengine
|
||||
, wrapQtAppsHook
|
||||
}:
|
||||
|
||||
let
|
||||
@@ -77,9 +78,12 @@ in buildPythonPackage rec {
|
||||
|
||||
doCheck = true;
|
||||
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
passthru = {
|
||||
inherit wrapQtAppsHook;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python bindings for Qt5";
|
||||
homepage = http://www.riverbankcomputing.co.uk;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, fetchFromGitHub
|
||||
, ansible
|
||||
, pytest
|
||||
, mock
|
||||
@@ -8,11 +8,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pytest-ansible";
|
||||
version = "2.0.2";
|
||||
version = "2.1.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "d69d89cbcf29e587cbe6ec4b229346edbf027d3c04944dd7bcbf3d7bba46348f";
|
||||
src = fetchFromGitHub {
|
||||
owner = "ansible";
|
||||
repo = "pytest-ansible";
|
||||
rev = "v${version}";
|
||||
sha256 = "0v97sqk3q2vkmwnjlnncz8ss8086x9jg3cz0g2nzlngs4ql1gdb0";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
@@ -24,11 +26,11 @@ buildPythonPackage rec {
|
||||
checkInputs = [ mock ];
|
||||
propagatedBuildInputs = [ ansible pytest ];
|
||||
|
||||
# tests not included with release
|
||||
# tests not included with release, even on github
|
||||
doCheck = false;
|
||||
|
||||
checkPhase = ''
|
||||
pytest
|
||||
HOME=$TMPDIR pytest tests/
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
||||
@@ -5,12 +5,12 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sqlalchemy-utils";
|
||||
version = "0.34.0";
|
||||
version = "0.34.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit version;
|
||||
pname = "SQLAlchemy-Utils";
|
||||
sha256 = "0rlixs084isgxsvvpz96njqzikvg8x021sgjp4yj71jpd8blvg8f";
|
||||
sha256 = "126c9p8rnnb043w57ah7idqfryczbz4vi9lzsz2cgiaig6fv52b6";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -118,7 +118,7 @@ let
|
||||
keras-applications
|
||||
|
||||
# libs taken from system through the TF_SYS_LIBS mechanism
|
||||
grpc
|
||||
# grpc
|
||||
sqlite
|
||||
openssl
|
||||
jsoncpp
|
||||
@@ -169,7 +169,8 @@ let
|
||||
"flatbuffers"
|
||||
"gast_archive"
|
||||
"gif_archive"
|
||||
"grpc"
|
||||
# Lots of errors, requires an older version
|
||||
# "grpc"
|
||||
"hwloc"
|
||||
"icu"
|
||||
"jpeg"
|
||||
@@ -245,8 +246,7 @@ let
|
||||
'';
|
||||
|
||||
# FIXME: Tensorflow uses dlopen() for CUDA libraries.
|
||||
# No idea why gpr isn't linked properly; perhaps Tensorflow expects a static library?
|
||||
NIX_LDFLAGS = [ "-lgpr" ] ++ lib.optionals cudaSupport [ "-lcudart" "-lcublas" "-lcufft" "-lcurand" "-lcusolver" "-lcusparse" "-lcudnn" ];
|
||||
NIX_LDFLAGS = lib.optionals cudaSupport [ "-lcudart" "-lcublas" "-lcufft" "-lcurand" "-lcusolver" "-lcusparse" "-lcudnn" ];
|
||||
|
||||
hardeningDisable = [ "format" ];
|
||||
|
||||
@@ -261,15 +261,14 @@ let
|
||||
bazelTarget = "//tensorflow/tools/pip_package:build_pip_package //tensorflow/tools/lib_package:libtensorflow";
|
||||
|
||||
fetchAttrs = {
|
||||
preInstall = ''
|
||||
rm -rf $bazelOut/external/{bazel_tools,\@bazel_tools.marker,local_*,\@local_*}
|
||||
'';
|
||||
# So that checksums don't depend on these.
|
||||
TF_SYSTEM_LIBS = null;
|
||||
|
||||
# cudaSupport causes fetch of ncclArchive, resulting in different hashes
|
||||
sha256 = if cudaSupport then
|
||||
"19ll3f1i5qzd7ngz3m2jbxzgcrdjx5sv6kv2j5mcb8g3xsws8j5x"
|
||||
"196pm3ynfafqlcxah07hkvphf536hpix1ydgsynr1yg08aynlvvx"
|
||||
else
|
||||
"0y9kw3k4yvrxwdy7zry7nip9mdiwyv35r6mx65g4w7qajiypfc7i";
|
||||
"138r85n27ijzwxfwb5pcfyb79v14368jpckw0vmciz6pwf11bd9g";
|
||||
};
|
||||
|
||||
buildAttrs = {
|
||||
|
||||
Reference in New Issue
Block a user