Merge master into staging-next
This commit is contained in:
@@ -1,18 +1,20 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, pythonOlder
|
||||
, attrs, click, toml, appdirs, aiohttp, aiohttp-cors
|
||||
, glibcLocales, pytest }:
|
||||
, glibcLocales, typed-ast, pathspec, regex
|
||||
, setuptools_scm, pytest }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "black";
|
||||
version = "19.3b0";
|
||||
version = "19.10b0";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "073kd5rs02lisp6n3h7yai9lix520xnaa6c7rdmp2sci9pyhz5b8";
|
||||
sha256 = "0f8mr0yzj78q1dx7v6ggbgfir2wv0n5z2shfbbvfdq7910xbgvf2";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools_scm ];
|
||||
checkInputs = [ pytest glibcLocales ];
|
||||
|
||||
# Necessary for the tests to pass on Darwin with sandbox enabled.
|
||||
@@ -22,12 +24,11 @@ buildPythonPackage rec {
|
||||
# Don't know why these tests fails
|
||||
checkPhase = ''
|
||||
LC_ALL="en_US.UTF-8" pytest \
|
||||
--deselect tests/test_black.py::BlackTestCase::test_expression_diff \
|
||||
--deselect tests/test_black.py::BlackTestCase::test_cache_multiple_files \
|
||||
--deselect tests/test_black.py::BlackTestCase::test_failed_formatting_does_not_get_cached
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ attrs appdirs click toml aiohttp aiohttp-cors ];
|
||||
propagatedBuildInputs = [ attrs appdirs click toml aiohttp aiohttp-cors pathspec regex typed-ast ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "The uncompromising Python code formatter";
|
||||
|
||||
13
pkgs/development/python-modules/portend/black-19.10b0.patch
Normal file
13
pkgs/development/python-modules/portend/black-19.10b0.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
diff --git a/test_portend.py b/test_portend.py
|
||||
index b2de8c2..3f90276 100644
|
||||
--- a/test_portend.py
|
||||
+++ b/test_portend.py
|
||||
@@ -21,7 +21,7 @@ def socket_infos():
|
||||
|
||||
|
||||
def id_for_info(info):
|
||||
- af, = info[:1]
|
||||
+ (af,) = info[:1]
|
||||
return str(af)
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@ buildPythonPackage rec {
|
||||
sha256 = "19dc27bfb3c72471bd30a235a4d5fbefef8a7e31cab367744b5d87a205e7bfd9";
|
||||
};
|
||||
|
||||
patches = [ ./black-19.10b0.patch ];
|
||||
postPatch = ''
|
||||
substituteInPlace pytest.ini --replace "--flake8" ""
|
||||
'';
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 5c9ce5f..84b148a 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -26,6 +26,6 @@ setup(
|
||||
python_requires=">=2.7",
|
||||
install_requires=[
|
||||
"pytest>=3.5.0",
|
||||
- 'black==19.3b0; python_version >= "3.6"',
|
||||
+ 'black; python_version >= "3.6"',
|
||||
"toml",
|
||||
],
|
||||
use_scm_version=True,
|
||||
@@ -14,6 +14,7 @@ buildPythonPackage rec {
|
||||
sha256 = "03gwwy1h3qnfh6vpfhgsa5ag53a9sw1g42sc2s8a2hilwb7yrfvm";
|
||||
};
|
||||
|
||||
patches = [ ./black-version.patch ];
|
||||
nativeBuildInputs = [ setuptools_scm ];
|
||||
|
||||
propagatedBuildInputs = [ black pytest toml ];
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
, pillow
|
||||
, pymaging_png
|
||||
, mock
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -16,7 +17,7 @@ buildPythonPackage rec {
|
||||
sha256 = "505253854f607f2abf4d16092c61d4e9d511a3b4392e60bff957a68592b04369";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six pillow pymaging_png ];
|
||||
propagatedBuildInputs = [ six pillow pymaging_png setuptools ];
|
||||
checkInputs = [ mock ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
||||
@@ -76,6 +76,18 @@
|
||||
"sha256": "0gxmknd68kajak8jr443799bfd69pp5j0jnmcbnyx5abzyq6wkzx",
|
||||
"license": "cc-by-sa-40"
|
||||
},
|
||||
{
|
||||
"pname": "lt_core_news_sm",
|
||||
"version": "2.2.0",
|
||||
"sha256": "1j63xnp96qavg8c960y83z752mmvp9qx92r458lydrg1ixmffx9r",
|
||||
"license": "cc-by-sa-40"
|
||||
},
|
||||
{
|
||||
"pname": "nb_core_news_sm",
|
||||
"version": "2.2.0",
|
||||
"sha256": "0s0wf3kxrhdzfkgrbxjc53hzin3w8v06iivazh6bpf6rhbiwzfr0",
|
||||
"license": "mit"
|
||||
},
|
||||
{
|
||||
"pname": "nl_core_news_sm",
|
||||
"version": "2.2.1",
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "spyder-kernels";
|
||||
version = "1.6.0";
|
||||
version = "0.5.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "e374452af89f507b345431338c6655465b5c15d0b5e49f703be8c30bbe1d1202";
|
||||
sha256 = "01354b7fa180a87212cc005553b31a7300159b108d36828e301d3782291323f7";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -14,6 +14,8 @@ buildPythonPackage rec {
|
||||
sha256 = "1z7qw1h3rhca12ycv8xrzw6z2gf81v0j6lfq9kpwh472w4vk75v1";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pyqtwebengine.wrapQtAppsHook ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
jedi pycodestyle psutil pyflakes rope numpy scipy matplotlib pylint keyring
|
||||
numpydoc qtconsole qtawesome nbconvert mccabe pyopengl cloudpickle spyder-kernels
|
||||
@@ -47,6 +49,11 @@ buildPythonPackage rec {
|
||||
cp -r $desktopItem/share/applications/ $out/share
|
||||
'';
|
||||
|
||||
dontWrapQtApps = true;
|
||||
makeWrapperArgs = [
|
||||
"\${qtWrapperArgs[@]}"
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Scientific python development environment";
|
||||
longDescription = ''
|
||||
|
||||
Reference in New Issue
Block a user