Merge branch 'master' into staging-next

This commit is contained in:
Robert Schütz
2018-08-30 21:56:13 +02:00
95 changed files with 1171 additions and 395 deletions

View File

@@ -20,9 +20,8 @@ if !(pythonOlder "3.3") then null else buildPythonPackage rec {
buildInputs = [ lzma ];
# Needs the compiled module in $out
checkPhase = ''
PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH ${python.interpreter} -m unittest discover -s test
${python.interpreter} test/test_lzma.py
'';
# Relative import does not seem to function.
@@ -33,4 +32,4 @@ if !(pythonOlder "3.3") then null else buildPythonPackage rec {
homepage = https://github.com/peterjc/backports.lzma;
license = lib.licenses.bsd3;
};
}
}

View File

@@ -1,28 +0,0 @@
{ stdenv, buildPythonPackage, fetchPypi, isPy3k, boto, crcmod, psutil }:
buildPythonPackage rec {
pname = "buttersink";
version = "0.6.9";
disabled = isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "c9c05982c44fbb85f17b7ef0e8bee11f375c03d89bcba50cbc2520013512107a";
};
propagatedBuildInputs = [ boto crcmod psutil ];
meta = with stdenv.lib; {
description = "Synchronise btrfs snapshots";
longDescription = ''
ButterSink is like rsync, but for btrfs subvolumes instead of files,
which makes it much more efficient for things like archiving backup
snapshots. It is built on top of btrfs send and receive capabilities.
Sources and destinations can be local btrfs file systems, remote btrfs
file systems over SSH, or S3 buckets.
'';
homepage = https://github.com/AmesCornish/buttersink/wiki;
license = licenses.gpl3;
platforms = platforms.linux;
};
}

View File

@@ -1,26 +0,0 @@
{ stdenv, buildPythonPackage, fetchPypi, isPy3k
, boto, redis, setuptools, simplejson }:
buildPythonPackage rec {
pname = "docker-registry-core";
version = "2.0.3";
disabled = isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "0q036rr0b5734szkj883hkb2kjhgcc5pm3dz4yz8vcim3x7q0zil";
};
DEPS = "loose";
doCheck = false;
propagatedBuildInputs = [ boto redis setuptools simplejson ];
patchPhase = "> requirements/main.txt";
meta = with stdenv.lib; {
description = "Docker registry core package";
homepage = https://github.com/docker/docker-registry;
license = licenses.asl20;
};
}

View File

@@ -5,6 +5,7 @@
, nbformat
, pytz
, requests
, retrying
, six
}:
@@ -22,6 +23,7 @@ buildPythonPackage rec {
nbformat
pytz
requests
retrying
six
];

View File

@@ -25,7 +25,7 @@ let
"LD_LIBRARY_PATH=${cudaStub}\${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} ";
in buildPythonPackage rec {
version = "0.4.0";
version = "0.4.1";
pname = "pytorch";
src = fetchFromGitHub {
@@ -33,7 +33,7 @@ in buildPythonPackage rec {
repo = "pytorch";
rev = "v${version}";
fetchSubmodules = true;
sha256 = "12d5vqqaprk0igmih7fwa65ldmaawgijxl58h6dnw660wysc132j";
sha256 = "1cr8h47jxgfar5bamyvlayvqymnb2qvp7rr0ka2d2d4rdldf9lrp";
};
preConfigure = lib.optionalString cudaSupport ''
@@ -56,7 +56,7 @@ in buildPythonPackage rec {
] ++ lib.optional (pythonOlder "3.5") typing;
checkPhase = ''
${cudaStubEnv}python test/run_test.py --exclude distributed
${cudaStubEnv}python test/run_test.py --exclude distributed autograd distributions jit sparse torch utils nn
'';
meta = {

View File

@@ -0,0 +1,26 @@
{ stdenv, buildPythonPackage, fetchPypi, watchman }:
buildPythonPackage rec {
pname = "pywatchman";
version = "1.4.1";
src = fetchPypi {
inherit pname version;
sha256 = "1yf2gm20wc3djpb5larxii3l55xxby0il2ns3q0v1byyfnr7w16h";
};
postPatch = ''
substituteInPlace pywatchman/__init__.py \
--replace "'watchman'" "'${watchman}/bin/watchman'"
'';
# No tests in archive
doCheck = false;
meta = with stdenv.lib; {
description = "Watchman client for Python";
homepage = https://facebook.github.io/watchman/;
license = licenses.bsd3;
};
}