Merge staging-next into staging

This commit is contained in:
github-actions[bot]
2021-04-27 18:14:28 +00:00
committed by GitHub
59 changed files with 2985 additions and 2110 deletions
@@ -0,0 +1,29 @@
{ lib
, buildPythonPackage
, fetchPypi
, dateutil
}:
buildPythonPackage rec {
pname = "ghp-import";
version = "1.1.0";
src = fetchPypi {
inherit pname version;
hash = "sha256-wiqc4Qw3dT4miNFk12WnANrkuNefptsKLDEyuniBiU8=";
};
propagatedBuildInputs = [ dateutil ];
# Does not include any unit tests
doCheck = false;
pythonImportsCheck = [ "ghp_import" ];
meta = with lib; {
description = "Copy your docs directly to the gh-pages branch";
homepage = "https://github.com/c-w/ghp-import";
license = licenses.asl20;
maintainers = with maintainers; [ veehaitch ];
};
}
@@ -0,0 +1,56 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, attrs
, funcsigs
, requests-mock
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "mock-services";
version = "0.3.1";
src = fetchFromGitHub {
owner = "peopledoc";
repo = "mock-services";
rev = version;
sha256 = "1rqyyfwngi1xsd9a81irjxacinkj1zf6nqfvfxhi55ky34x5phf9";
};
patches = [
# Fix issues due to internal API breaking in latest versions of requests-mock
(fetchpatch {
url = "https://github.com/peopledoc/mock-services/commit/88d3a0c9ef4dd7d5e011068ed2fdbbecc4a1a03a.patch";
sha256 = "0a4pwxr33kr525sp8q4mb4cr3n2b51mj2a3052lhg6brdbi4gnms";
})
];
propagatedBuildInputs = [
attrs
funcsigs
requests-mock
];
checkInputs = [
pytestCheckHook
];
disabledTests = [
# require networking
"test_real_http_1"
"test_restart_http_mock"
"test_start_http_mock"
"test_stop_http_mock"
];
pythonImportsCheck = [ "mock_services" ];
meta = with lib; {
description = "Mock an entire service API based on requests-mock";
homepage = "https://github.com/peopledoc/mock-services";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}
@@ -1,24 +1,48 @@
{ lib, buildPythonPackage, fetchPypi, pbr, dateutil, ws4py, requests-unixsocket, requests-toolbelt, mock }:
{ lib
, buildPythonPackage
, fetchFromGitHub
, cryptography
, python-dateutil
, requests
, requests-toolbelt
, requests-unixsocket
, ws4py
, ddt
, mock-services
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pylxd";
version = "2.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "1db88l55q974fm9z5gllx3i8bkj0jzi25xrr5cs6id3bfy4zp8a7";
src = fetchFromGitHub {
owner = "lxc";
repo = "pylxd";
rev = version;
sha256 = "144frnlsb21mglgyisms790hyrdfx1l91lcd7incch4m4a1cbpp6";
};
propagatedBuildInputs = [
pbr
dateutil
ws4py
requests-unixsocket
cryptography
python-dateutil
requests
requests-toolbelt
requests-unixsocket
ws4py
];
checkInputs = [
ddt
mock-services
pytestCheckHook
];
disabledTestPaths = [
"integration"
"migration"
];
# tests require an old version of requests-mock that we do not have a package for
doCheck = false;
pythonImportsCheck = [ "pylxd" ];
meta = with lib; {
@@ -30,6 +30,13 @@ buildPythonPackage rec {
sha256 = "07x6jr4z20jxn03bxblwc8vk0ywha492cgwfhj7q97nb5cm7kx0q";
};
postPatch = ''
# Reading the changelog I don't expect an API break in pycodestyle and pyflakes
substituteInPlace setup.py \
--replace "pycodestyle>=2.6.0,<2.7.0" "pycodestyle>=2.6.0,<2.8.0" \
--replace "pyflakes>=2.2.0,<2.3.0" "pyflakes>=2.2.0,<2.4.0"
'';
propagatedBuildInputs = [ setuptools jedi pluggy future python-jsonrpc-server ujson ]
++ lib.optional (withProvider "autopep8") autopep8
++ lib.optional (withProvider "mccabe") mccabe
@@ -3,7 +3,7 @@
keyring, numpydoc, qtconsole, qtawesome, nbconvert, mccabe, pyopengl,
cloudpickle, pygments, spyder-kernels, qtpy, pyzmq, chardet, qdarkstyle,
watchdog, python-language-server, pyqtwebengine, atomicwrites, pyxdg,
diff-match-patch, three-merge, pyls-black, pyls-spyder, flake8
diff-match-patch, three-merge, pyls-black, pyls-spyder, flake8, textdistance
}:
buildPythonPackage rec {
@@ -20,11 +20,11 @@ buildPythonPackage rec {
nativeBuildInputs = [ pyqtwebengine.wrapQtAppsHook ];
propagatedBuildInputs = [
intervaltree jedi pycodestyle psutil pyflakes rope numpy scipy matplotlib pylint keyring
intervaltree jedi pycodestyle psutil rope numpy scipy matplotlib pylint keyring
numpydoc qtconsole qtawesome nbconvert mccabe pyopengl cloudpickle spyder-kernels
pygments qtpy pyzmq chardet pyqtwebengine qdarkstyle watchdog python-language-server
atomicwrites pyxdg diff-match-patch three-merge pyls-black pyls-spyder
flake8
flake8 textdistance
];
# There is no test for spyder
@@ -44,9 +44,13 @@ buildPythonPackage rec {
# remove dependency on pyqtwebengine
# this is still part of the pyqt 5.11 version we have in nixpkgs
sed -i /pyqtwebengine/d setup.py
# The major version bump in watchdog is due to changes in supported
# platforms, not API break.
# https://github.com/gorakhargosh/watchdog/issues/761#issuecomment-777001518
substituteInPlace setup.py \
--replace "pyqt5<5.13" "pyqt5" \
--replace "parso==0.7.0" "parso"
--replace "parso==0.7.0" "parso" \
--replace "watchdog>=0.10.3,<2.0.0" "watchdog>=0.10.3,<3.0.0"
'';
postInstall = ''
@@ -0,0 +1,23 @@
{ lib, buildPythonPackage, fetchPypi }:
buildPythonPackage rec {
pname = "textdistance";
version = "4.2.1";
src = fetchPypi {
inherit pname version;
sha256 = "114j3ignw4y9yq1cp08p4bfw518vyr3p0h8ba2mikwy74qxxzy26";
};
# There aren't tests
doCheck = false;
pythonImportsCheck = [ "textdistance" ];
meta = with lib; {
description = "Python library for comparing distance between two or more sequences";
homepage = "https://github.com/life4/textdistance";
license = licenses.mit;
maintainers = with maintainers; [ eduardosm ];
};
}