Merge master into staging-next

This commit is contained in:
github-actions[bot]
2021-03-26 00:15:53 +00:00
committed by GitHub
46 changed files with 814 additions and 409 deletions

View File

@@ -1,4 +1,4 @@
{ lib, fetchPypi, buildPythonPackage,
{ lib, fetchPypi, fetchpatch, buildPythonPackage,
setuptools_scm, toml, six, astroid, pytest
}:
@@ -11,6 +11,16 @@ buildPythonPackage rec {
sha256 = "0a2ixiz04aw4p0aivxh47k3fa9ql804l3y5iv5gcih9aizi5fbm4";
};
patches = [
# Fixes compatibility with python 3.9, will be included in the next release
# after 2.0.4
(fetchpatch {
url = "https://github.com/gristlabs/asttokens/commit/d8ff80ee7d2e64c5e1daf50cc38eb99663f1b1ac.patch";
sha256 = "19y8n8vpzr2ijldbq5rh19sf0vz5azqqpkb9bx0ljjg98h6k7kjj";
excludes = [ "setup.cfg" ];
})
];
propagatedBuildInputs = [ setuptools_scm toml six astroid ];
checkInputs = [ pytest ];

View File

@@ -1,19 +1,35 @@
{ lib, buildPythonPackage, fetchFromGitHub, pytest }:
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "boltons";
version = "20.2.0";
version = "20.2.1";
# No tests in PyPi Tarball
src = fetchFromGitHub {
owner = "mahmoud";
repo = "boltons";
rev = version;
sha256 = "08rd6av8dp5n1vz6nybmayl1mfsmj66cskiaybfshcgix29ca803";
sha256 = "0vw0h0z81gfxgjfijqiza92ic0siv9xy65mklgj5d0dzr1k9waw8";
};
checkInputs = [ pytest ];
checkPhase = "pytest tests";
patches = [
(fetchpatch {
url = "https://github.com/mahmoud/boltons/commit/754afddf141ea26956c88c7e13fe5e7ca7942654.patch";
sha256 = "14kcq8pl4pmgcnlnmj1sh1yrksgym0kn0kgz2648g192svqkbpz8";
})
];
checkInputs = [ pytestCheckHook ];
disabledTests = [
# This test is broken without this PR, which has not yet been merged
# https://github.com/mahmoud/boltons/pull/283
"test_frozendict_ior"
];
meta = with lib; {
homepage = "https://github.com/mahmoud/boltons";

View File

@@ -1,25 +1,29 @@
{ lib, buildPythonPackage, fetchPypi, cffi, pytest }:
{ lib
, buildPythonPackage
, cffi
, fetchPypi
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "cmarkgfm";
version = "0.5.2";
version = "0.5.3";
src = fetchPypi {
inherit pname version;
sha256 = "e7d65b90645faa55c28886d01f658235af08b4c4edbf9d959518a17007dd20b4";
sha256 = "sha256-tqVJq6Mnq9mG1nSM8hyGN9dBx2hQ5/773vjSi/4TjjI=";
};
propagatedBuildInputs = [ cffi ];
checkInputs = [ pytest ];
checkInputs = [ pytestCheckHook ];
checkPhase = ''
py.test
'';
pythonImportsCheck = [ "cmarkgfm" ];
meta = with lib; {
description = "Minimal bindings to GitHub's fork of cmark";
homepage = "https://github.com/jonparrott/cmarkgfm";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View File

@@ -1,33 +1,35 @@
{ lib, buildPythonPackage
, fetchPypi, isPy3k, linuxPackages
, fastrlock, numpy, six, wheel, pytest, mock, setuptools
, fetchPypi, isPy3k, cython
, fastrlock, numpy, six, wheel, pytestCheckHook, mock, setuptools
, cudatoolkit, cudnn, cutensor, nccl
, addOpenGLRunpath
}:
buildPythonPackage rec {
pname = "cupy";
version = "8.4.0";
version = "8.5.0";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "58d19af6b2e83388d4f0f6ca4226bae4b947920d2ca4951c2eddc8bc78abf66b";
sha256 = "fb3f8d3b3454beb249b9880502a45fe493c5a44efacc4c72914cbe1a5dbdf803";
};
checkInputs = [
pytest
mock
preConfigure = ''
export CUDA_PATH=${cudatoolkit}
'';
nativeBuildInputs = [
addOpenGLRunpath
cython
];
preConfigure = ''
export CUDA_PATH=${cudatoolkit}
'';
LDFLAGS = "-L${cudatoolkit}/lib/stubs";
propagatedBuildInputs = [
cudatoolkit
cudnn
cutensor
linuxPackages.nvidia_x11
nccl
fastrlock
numpy
@@ -36,8 +38,20 @@ buildPythonPackage rec {
wheel
];
# In python3, test was failed...
doCheck = !isPy3k;
checkInputs = [
pytestCheckHook
mock
];
# Won't work with the GPU, whose drivers won't be accessible from the build
# sandbox
doCheck = false;
postFixup = ''
find $out -type f \( -name '*.so' -or -name '*.so.*' \) | while read lib; do
addOpenGLRunpath "$lib"
done
'';
enableParallelBuilding = true;

View File

@@ -0,0 +1,26 @@
{ lib, buildPythonPackage, isPy3k, fetchPypi, cmake, numpy, pytestCheckHook }:
buildPythonPackage rec {
pname = "iminuit";
version = "2.4.0";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "350c13d33f3ec5884335aea1cc11a17ae49dd8e6b2181c3f1b3c9c27e2e0b228";
};
nativeBuildInputs = [ cmake ];
propagatedBuildInputs = [ numpy ];
dontUseCmakeConfigure = true;
checkInputs = [ pytestCheckHook ];
meta = with lib; {
homepage = "https://github.com/scikit-hep/iminuit";
description = "Python interface for the Minuit2 C++ library";
license = with licenses; [ mit lgpl2Only ];
maintainers = with maintainers; [ veprbl ];
};
}

View File

@@ -25,7 +25,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Using hardware wallets as SSH/GPG agent";
homepage = "https://github.com/romanz/trezor-agent";
license = licenses.gpl3;
license = licenses.lgpl3Only;
maintainers = with maintainers; [ np ];
};
}

View File

@@ -16,6 +16,7 @@ buildPythonPackage rec {
homepage = "https://github.com/rhgrant10/ndjson";
description = "JsonDecoder";
platforms = platforms.unix;
license = licenses.gpl3Only;
maintainers = with maintainers; [ freezeboy ];
};
}

View File

@@ -1,5 +1,4 @@
{ lib
, pythonOlder
, buildPythonPackage
, isPy3k
, fetchFromGitHub

View File

@@ -0,0 +1,22 @@
{ lib, buildPythonPackage, fetchPypi, aiohttp, jsonrpc-async, jsonrpc-websocket }:
buildPythonPackage rec {
pname = "pykodi";
version = "0.2.3";
src = fetchPypi {
inherit pname version;
sha256 = "099xyn5aql5mdim6kh4hwx0fg1a3bx73qdvwr48nz23cljmmk1m8";
};
propagatedBuildInputs = [ aiohttp jsonrpc-async jsonrpc-websocket ];
pythonImportsCheck = [ "pykodi" ];
meta = with lib; {
description = "An async python interface for Kodi over JSON-RPC";
homepage = "https://github.com/OnFreund/PyKodi";
license = licenses.mit;
maintainers = with maintainers; [ sephalon ];
};
}

View File

@@ -28,7 +28,7 @@ buildPythonPackage rec {
meta = with lib; {
homepage = "https://salmon-mail.readthedocs.org/";
description = "Pythonic mail application server";
license = licenses.gpl3;
license = licenses.gpl3Only;
maintainers = with maintainers; [ jluttine ];
};
}

View File

@@ -1,27 +1,34 @@
{ lib
, fetchFromGitHub
, buildPythonPackage
, fetchFromGitHub
, pytest-cov
, pytestCheckHook
, pytestcov
}:
buildPythonPackage rec {
pname = "semver";
version = "2.10.2";
version = "2.13.0";
src = fetchFromGitHub {
owner = "python-semver";
repo = "python-semver";
rev = version;
sha256 = "0yxjmcgk5iwp53l9z1cg0ajrj18i09ircs11ifpdrggzm8n1blf3";
sha256 = "sha256-IWTo/P9JRxBQlhtcH3JMJZZrwAA8EALF4dtHajWUc4w=";
};
preCheck = "rm -rf dist"; # confuses source vs dist imports in pytest
checkInputs = [ pytestCheckHook pytestcov ];
checkInputs = [
pytest-cov
pytestCheckHook
];
# Confuses source vs dist imports in pytest
preCheck = "rm -r dist";
pythonImportsCheck = [ "semver" ];
meta = with lib; {
description = "Python package to work with Semantic Versioning (http://semver.org/)";
homepage = "https://python-semver.readthedocs.io/en/latest/";
homepage = "https://python-semver.readthedocs.io/";
license = licenses.bsd3;
maintainers = with maintainers; [ np ];
};

View File

@@ -7,13 +7,13 @@
buildPythonPackage rec {
pname = "ytmusicapi";
version = "0.14.3";
version = "0.15.0";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "83251a95d5bd74116353d29dfda2d0c5055b88276a0876a313a66f8b9c691344";
sha256 = "sha256-pVQqoMvuuFc/1QNG5z/AspGlgIGPi9aqjZ3/3eVNhis=";
};
propagatedBuildInputs = [