mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-22 00:20:58 +00:00
Merge branch 'master' into staging-next
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, isPy27
|
||||
, pygments
|
||||
, pytest
|
||||
, pytestcov
|
||||
, uvloop
|
||||
@@ -21,6 +22,10 @@ buildPythonPackage rec {
|
||||
sha256 = "0wcj8prkijb889ic8n6varms7xkwy028hhw0imgkd1i0p64lm3m4";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pygments
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytest
|
||||
pytestcov
|
||||
|
||||
@@ -2,22 +2,24 @@
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, six
|
||||
, pathlib
|
||||
, pytest
|
||||
, mock
|
||||
, parameterized
|
||||
, isPy27
|
||||
, isPy35
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aws-lambda-builders";
|
||||
version = "0.8.0";
|
||||
version = "0.9.0";
|
||||
|
||||
# No tests available in PyPI tarball
|
||||
src = fetchFromGitHub {
|
||||
owner = "awslabs";
|
||||
repo = "aws-lambda-builders";
|
||||
rev = "v${version}";
|
||||
sha256 = "1akiv92cd7ciky0aay94lh9azr73jajn0x0x6ywaf3qm5c4hyvys";
|
||||
sha256 = "0cgb0hwf4xg5dmm32wwlxqy7a77jw6gpnj7v8rq5948hsy2sfrcp";
|
||||
};
|
||||
|
||||
# Package is not compatible with Python 3.5
|
||||
@@ -25,7 +27,7 @@ buildPythonPackage rec {
|
||||
|
||||
propagatedBuildInputs = [
|
||||
six
|
||||
];
|
||||
] ++ lib.optionals isPy27 [ pathlib ];
|
||||
|
||||
checkInputs = [
|
||||
pytest
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, pytest, tox, py, eventlet }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "detox";
|
||||
version = "0.19";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "e650f95f0c7f5858578014b3b193e5dac76c89285c1bbe4bae598fd641bf9cd3";
|
||||
};
|
||||
|
||||
buildInputs = [ pytest ];
|
||||
propagatedBuildInputs = [ tox py eventlet ];
|
||||
|
||||
checkPhase = ''
|
||||
py.test
|
||||
'';
|
||||
|
||||
# eventlet timeout, and broken invokation 3.5
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "What is detox?";
|
||||
homepage = "https://bitbucket.org/hpk42/detox";
|
||||
license = licenses.mit;
|
||||
# detox is unmaintained and incompatible with tox > 3.6
|
||||
broken = true;
|
||||
};
|
||||
}
|
||||
@@ -1,8 +1,10 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
, isPy27
|
||||
, appdirs
|
||||
, importlib-metadata
|
||||
, requests
|
||||
, pytest
|
||||
}:
|
||||
@@ -20,8 +22,16 @@ buildPythonPackage rec {
|
||||
propagatedBuildInputs = [
|
||||
appdirs
|
||||
requests
|
||||
] ++ lib.optionals (pythonOlder "3.8") [
|
||||
importlib-metadata
|
||||
];
|
||||
|
||||
# can be removed when https://github.com/nschloe/pipdate/pull/41 gets merged
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg \
|
||||
--replace "importlib_metadata" "importlib_metadata; python_version < \"3.8\""
|
||||
'';
|
||||
|
||||
checkInputs = [
|
||||
pytest
|
||||
];
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
{ stdenv, buildPythonPackage, fetchPypi, isPy27
|
||||
, requests
|
||||
, testfixtures, mock, requests_toolbelt
|
||||
, betamax, betamax-serializers, betamax-matchers, pytest
|
||||
@@ -7,6 +7,7 @@
|
||||
buildPythonPackage rec {
|
||||
pname = "prawcore";
|
||||
version = "1.4.0";
|
||||
disabled = isPy27; # see https://github.com/praw-dev/prawcore/pull/101
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
|
||||
@@ -12,11 +12,11 @@ buildPythonPackage rec {
|
||||
sha256 = "b95e31850f3af163c2283ed40432f053acbc8fc6eba6a069cb518d9dbf71848c";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pytestrunner toml ];
|
||||
nativeBuildInputs = [ pytestrunner ];
|
||||
|
||||
checkInputs = [ pytestCheckHook pytest-benchmark ];
|
||||
|
||||
propagatedBuildInputs = [ astroid isort mccabe ];
|
||||
propagatedBuildInputs = [ astroid isort mccabe toml ];
|
||||
|
||||
postPatch = lib.optionalString stdenv.isDarwin ''
|
||||
# Remove broken darwin test
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyls-black";
|
||||
version = "0.4.4";
|
||||
version = "0.4.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rupert";
|
||||
repo = "pyls-black";
|
||||
rev = "v${version}";
|
||||
sha256 = "1ynynay9g6yma39szbzf15ypq3c72fg1i0kjmq1dwxarj68i2gf9";
|
||||
sha256 = "0cjf0mjn156qp0x6md6mncs31hdpzfim769c2lixaczhyzwywqnj";
|
||||
};
|
||||
|
||||
disabled = !isPy3k;
|
||||
@@ -27,9 +27,6 @@ buildPythonPackage rec {
|
||||
homepage = "https://github.com/rupert/pyls-black";
|
||||
description = "Black plugin for the Python Language Server";
|
||||
license = licenses.mit;
|
||||
# Not compatible with 0.33.1
|
||||
# https://github.com/rupert/pyls-black/issues/24
|
||||
broken = true; # since 2020-06-16
|
||||
maintainers = [ maintainers.mic92 ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -104,7 +104,7 @@ let
|
||||
"LD_LIBRARY_PATH=${cudaStub}\${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH ";
|
||||
|
||||
in buildPythonPackage rec {
|
||||
version = "1.5.0";
|
||||
version = "1.5.1";
|
||||
pname = "pytorch";
|
||||
disabled = !isPy3k;
|
||||
|
||||
@@ -118,9 +118,24 @@ in buildPythonPackage rec {
|
||||
repo = "pytorch";
|
||||
rev = "v${version}";
|
||||
fetchSubmodules = true;
|
||||
sha256 = "19qyrjd72mc0llcfn50av8ym05f2iwa38gv068wykji4ph7qjlv2";
|
||||
sha256 = "1xjbn4hi96m7xslv3p2jc6qcsng0fx3w1m6isqfah81piljf8wng";
|
||||
};
|
||||
|
||||
patches = lib.optionals stdenv.isAarch64 [
|
||||
# GNU aarch64 assembler does not support 4s on neon mov:
|
||||
# https://github.com/pytorch/pytorch/issues/33124
|
||||
#
|
||||
# Fix from:
|
||||
# https://github.com/pytorch/pytorch/pull/40584
|
||||
#
|
||||
# This patch can be removed with the next major version (1.6.0).
|
||||
(fetchpatch {
|
||||
name = "qnnpack-neon-fix.patch";
|
||||
url = "https://github.com/pytorch/pytorch/commit/7676682584d0caf9243bce74ea0a88711ec4a807.diff";
|
||||
sha256 = "13spncaqlpsp8qk2850yly7xqwmhhfwznhmzkk8jgpslkbx75vgq";
|
||||
})
|
||||
];
|
||||
|
||||
preConfigure = lib.optionalString cudaSupport ''
|
||||
export TORCH_CUDA_ARCH_LIST="${lib.strings.concatStringsSep ";" final_cudaArchList}"
|
||||
export CC=${cudatoolkit.cc}/bin/gcc CXX=${cudatoolkit.cc}/bin/g++
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, fetchpatch, isPy27
|
||||
{ lib, buildPythonPackage, fetchPypi, fetchpatch, isPy27
|
||||
, mock, pytest, sybil, zope_component, twisted }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -15,12 +15,16 @@ buildPythonPackage rec {
|
||||
doCheck = !isPy27;
|
||||
checkPhase = ''
|
||||
# django is too much hasle to setup at the moment
|
||||
pytest -W ignore::DeprecationWarning --ignore=testfixtures/tests/test_django testfixtures/tests
|
||||
pytest -W ignore::DeprecationWarning \
|
||||
--ignore=testfixtures/tests/test_django \
|
||||
-k 'not (log_then_patch or our_wrap_dealing_with_mock_patch or patch_with_dict)' \
|
||||
testfixtures/tests
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/Simplistix/testfixtures";
|
||||
description = "A collection of helpers and mock objects for unit tests and doc tests";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ siriobalmelli ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, zope_testrunner
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -12,12 +13,12 @@ buildPythonPackage rec {
|
||||
sha256 = "c12d929c67ab3eaef9b8a7fba3d19cce8500c8fd25afed8058c8e15f324cbd5b";
|
||||
};
|
||||
|
||||
checkInputs = [ zope_testrunner ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://github.com/zopefoundation/zope.contenttype";
|
||||
description = "A utility module for content-type (MIME type) handling";
|
||||
license = licenses.zpl20;
|
||||
maintainers = with maintainers; [ goibhniu ];
|
||||
broken = true;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user