diff options
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/libraries/libvirt/default.nix | 6 | ||||
-rw-r--r-- | pkgs/development/libraries/mpich/default.nix (renamed from pkgs/development/libraries/mpich2/default.nix) | 14 | ||||
-rw-r--r-- | pkgs/development/libraries/openssl/default.nix | 3 | ||||
-rw-r--r-- | pkgs/development/libraries/openssl/revert-relaxed-quoting.patch | 37 | ||||
-rw-r--r-- | pkgs/development/python-modules/asana/default.nix | 11 | ||||
-rw-r--r-- | pkgs/development/python-modules/asgiref/default.nix | 8 | ||||
-rw-r--r-- | pkgs/development/python-modules/fire/default.nix | 47 | ||||
-rw-r--r-- | pkgs/development/python-modules/libvirt/default.nix | 4 |
8 files changed, 112 insertions, 18 deletions
diff --git a/pkgs/development/libraries/libvirt/default.nix b/pkgs/development/libraries/libvirt/default.nix index 02c13e413e33..e584af775d2b 100644 --- a/pkgs/development/libraries/libvirt/default.nix +++ b/pkgs/development/libraries/libvirt/default.nix @@ -16,19 +16,19 @@ let buildFromTarball = stdenv.isDarwin; in stdenv.mkDerivation rec { name = "libvirt-${version}"; - version = "4.5.0"; + version = "4.6.0"; src = if buildFromTarball then fetchurl { url = "http://libvirt.org/sources/${name}.tar.xz"; - sha256 = "02dbfyi80im37gdsxglb4fja78q63b8ahmgdc5kh8lx51kf5xsg7"; + sha256 = "0rj0azi766g0xdxydvkq9nj95hhsiwqgclzzmyxvk2axhb8nrb5l"; } else fetchgit { url = git://libvirt.org/libvirt.git; rev = "v${version}"; - sha256 = "0ija9a02znajsa2pbxamrmz87zwpmba9s29vdzzqqqw5c1rdpcr6"; + sha256 = "1lv1s93k056wylrlc7j4q45zir9z4qshzcl454spy2wb8cdn3h4s"; fetchSubmodules = true; }; diff --git a/pkgs/development/libraries/mpich2/default.nix b/pkgs/development/libraries/mpich/default.nix index b5a36c184ff7..87d24854255a 100644 --- a/pkgs/development/libraries/mpich2/default.nix +++ b/pkgs/development/libraries/mpich/default.nix @@ -1,5 +1,5 @@ { stdenv, fetchurl, perl, gfortran -, slurm, openssh, hwloc +, openssh, hwloc } : stdenv.mkDerivation rec { @@ -16,7 +16,9 @@ stdenv.mkDerivation rec { "--enable-sharedlib" ]; - buildInputs = [ perl gfortran slurm openssh hwloc ]; + enableParallelBuilding = true; + + buildInputs = [ perl gfortran openssh hwloc ]; doCheck = true; @@ -26,8 +28,12 @@ stdenv.mkDerivation rec { echo "fix rpath: $entry" patchelf --set-rpath "$out/lib" $entry done - ''; + # Ensure the default compilers are the ones mpich was built with + sed -i 's:CC="gcc":CC=${stdenv.cc}/bin/gcc:' $out/bin/mpicc + sed -i 's:CXX="g++":CXX=${stdenv.cc}/bin/g++:' $out/bin/mpicxx + sed -i 's:FC="gfortran":FC=${gfortran}/bin/gfortran:' $out/bin/mpifort + ''; meta = with stdenv.lib; { description = "Implementation of the Message Passing Interface (MPI) standard"; @@ -43,6 +49,6 @@ stdenv.mkDerivation rec { fullName = "MPICH license (permissive)"; }; maintainers = [ maintainers.markuskowa ]; - platforms = platforms.unix; + platforms = platforms.linux; }; } diff --git a/pkgs/development/libraries/openssl/default.nix b/pkgs/development/libraries/openssl/default.nix index 4df0e08e6a72..35538b99060e 100644 --- a/pkgs/development/libraries/openssl/default.nix +++ b/pkgs/development/libraries/openssl/default.nix @@ -126,6 +126,9 @@ in { openssl_1_1_0 = common { version = "1.1.0h"; sha256 = "05x509lccqjscgyi935z809pwfm708islypwhmjnb6cyvrn64daq"; + patches = [ + ./revert-relaxed-quoting.patch + ]; }; } diff --git a/pkgs/development/libraries/openssl/revert-relaxed-quoting.patch b/pkgs/development/libraries/openssl/revert-relaxed-quoting.patch new file mode 100644 index 000000000000..ebe7c0ef26ce --- /dev/null +++ b/pkgs/development/libraries/openssl/revert-relaxed-quoting.patch @@ -0,0 +1,37 @@ +From 7ee2a43069913fb7c444c656048996ea92cc465e Mon Sep 17 00:00:00 2001 +From: Richard Levitte <levitte@openssl.org> +Date: Wed, 28 Mar 2018 14:46:27 +0200 +Subject: [PATCH] Revert "util/dofile.pl: only quote stuff that actually needs + quoting" + +This wasn't a good solution, too many things depend on the quotes being +there consistently. + +This reverts commit 49cd47eaababc8c57871b929080fc1357e2ad7b8. + +Fixes #5772 + +Reviewed-by: Rich Salz <rsalz@openssl.org> +(Merged from https://github.com/openssl/openssl/pull/5773) + +(cherry picked from commit 00701e5ea84861b74d9d624f21a6b3fcb12e8acd) +--- + util/dofile.pl | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/util/dofile.pl b/util/dofile.pl +index fc72989b0fd..a932941cd5a 100644 +--- a/util/dofile.pl ++++ b/util/dofile.pl +@@ -99,9 +99,9 @@ package main; + # This adds quotes (") around the given string, and escapes any $, @, \, + # " and ' by prepending a \ to them. + sub quotify1 { +- my $s = my $orig = shift @_; ++ my $s = shift @_; + $s =~ s/([\$\@\\"'])/\\$1/g; +- $s ne $orig || $s =~ /\s/ ? '"'.$s.'"' : $s; ++ '"'.$s.'"'; + } + + # quotify_l LIST diff --git a/pkgs/development/python-modules/asana/default.nix b/pkgs/development/python-modules/asana/default.nix index 2fbe4932beda..19140925595b 100644 --- a/pkgs/development/python-modules/asana/default.nix +++ b/pkgs/development/python-modules/asana/default.nix @@ -4,22 +4,21 @@ buildPythonPackage rec { pname = "asana"; - version = "0.7.0"; + version = "0.7.1"; src = fetchFromGitHub { owner = "asana"; repo = "python-asana"; rev = "v${version}"; - sha256 = "0786y3wxqxxhsb0kkpx4bfzif3dhvv3dmm6vnq58iyj94862kpxf"; + sha256 = "0vmpy4j1n54gkkg0l8bhw0xf4yby5kqzxnsv07cjc2w38snj5vy1"; }; checkInputs = [ pytest responses ]; propagatedBuildInputs = [ requests requests_oauthlib six ]; - patchPhase = '' - echo > requirements.txt - sed -i "s/requests~=2.9.1/requests >=2.9.1/" setup.py - sed -i "s/requests_oauthlib~=0.6.1/requests_oauthlib >=0.6.1/" setup.py + postPatch = '' + substituteInPlace setup.py \ + --replace "requests_oauthlib >= 0.8.0, == 0.8.*" "requests_oauthlib>=0.8.0<2.0" ''; checkPhase = '' diff --git a/pkgs/development/python-modules/asgiref/default.nix b/pkgs/development/python-modules/asgiref/default.nix index a556cd3c87f2..155ddf8c9f8b 100644 --- a/pkgs/development/python-modules/asgiref/default.nix +++ b/pkgs/development/python-modules/asgiref/default.nix @@ -1,14 +1,16 @@ -{ stdenv, buildPythonPackage, fetchFromGitHub, async-timeout, pytest, pytest-asyncio }: +{ stdenv, buildPythonPackage, pythonOlder, fetchFromGitHub, async-timeout, pytest, pytest-asyncio }: buildPythonPackage rec { - version = "2.2.0"; + version = "2.3.2"; pname = "asgiref"; + disabled = pythonOlder "3.5"; + # PyPI tarball doesn't include tests directory src = fetchFromGitHub { owner = "django"; repo = pname; rev = version; - sha256 = "0jsdkgwzswm1jbfm6d100yfvfzpic8v6ysydcnn798bbpwclj8ip"; + sha256 = "1ljymmcscyp3bz33kjbhf99k04fbama87vg4069gbgj6lnxjpzav"; }; propagatedBuildInputs = [ async-timeout ]; diff --git a/pkgs/development/python-modules/fire/default.nix b/pkgs/development/python-modules/fire/default.nix new file mode 100644 index 000000000000..70538407f2ee --- /dev/null +++ b/pkgs/development/python-modules/fire/default.nix @@ -0,0 +1,47 @@ +{ stdenv, buildPythonPackage, fetchFromGitHub, six, hypothesis, mock +, python-Levenshtein, pytest }: + +buildPythonPackage rec { + pname = "fire"; + version = "0.1.3"; + + src = fetchFromGitHub { + owner = "google"; + repo = "python-fire"; + rev = "v${version}"; + sha256 = "0kdcmzr3sgzjsw5fmvdylgrn8akqjbs433jbgqzp498njl9cc6qx"; + }; + + propagatedBuildInputs = [ six ]; + + checkInputs = [ hypothesis mock python-Levenshtein pytest ]; + + checkPhase = '' + py.test + ''; + + + meta = with stdenv.lib; { + description = "A library for automatically generating command line interfaces"; + longDescription = '' + Python Fire is a library for automatically generating command line + interfaces (CLIs) from absolutely any Python object. + + * Python Fire is a simple way to create a CLI in Python. + + * Python Fire is a helpful tool for developing and debugging + Python code. + + * Python Fire helps with exploring existing code or turning other + people's code into a CLI. + + * Python Fire makes transitioning between Bash and Python easier. + + * Python Fire makes using a Python REPL easier by setting up the + REPL with the modules and variables you'll need already imported + and created. + ''; + license = licenses.asl20; + maintainers = with maintainers; [ leenaars ]; + }; +} diff --git a/pkgs/development/python-modules/libvirt/default.nix b/pkgs/development/python-modules/libvirt/default.nix index 26b42020fc34..71e9adf11d2d 100644 --- a/pkgs/development/python-modules/libvirt/default.nix +++ b/pkgs/development/python-modules/libvirt/default.nix @@ -2,12 +2,12 @@ buildPythonPackage rec { pname = "libvirt"; - version = "4.5.0"; + version = "4.6.0"; src = assert version == libvirt.version; fetchgit { url = git://libvirt.org/libvirt-python.git; rev = "v${version}"; - sha256 = "0w2rzkxv7jsq4670m0j5c6p4hpyi0r0ja6wd3wdvixcwc6hhx407"; + sha256 = "0yrgibd5c9wy82ak8g9ykar6fma1wf7xzmmc47657lzm70m5av68"; }; nativeBuildInputs = [ pkgconfig ]; |