Merge pull request #108925 from SuperSandro2000/fix-collection2
This commit is contained in:
@@ -19,18 +19,22 @@ python3Packages.buildPythonApplication rec {
|
|||||||
setuptools
|
setuptools
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# no tests
|
||||||
|
doCheck = false;
|
||||||
|
pythonImportsCheck = [ "lieer" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Fast email-fetching and two-way tag synchronization between notmuch and GMail";
|
description = "Fast email-fetching and two-way tag synchronization between notmuch and GMail";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
This program can pull email and labels (and changes to labels)
|
This program can pull email and labels (and changes to labels)
|
||||||
from your GMail account and store them locally in a maildir with
|
from your GMail account and store them locally in a maildir with
|
||||||
the labels synchronized with a notmuch database. The changes to
|
the labels synchronized with a notmuch database. The changes to
|
||||||
tags in the notmuch database may be pushed back remotely to your
|
tags in the notmuch database may be pushed back remotely to your
|
||||||
GMail account.
|
GMail account.
|
||||||
'';
|
'';
|
||||||
homepage = "https://lieer.gaute.vetsj.com/";
|
homepage = "https://lieer.gaute.vetsj.com/";
|
||||||
repositories.git = "https://github.com/gauteh/lieer.git";
|
repositories.git = "https://github.com/gauteh/lieer.git";
|
||||||
license = licenses.gpl3Plus;
|
license = licenses.gpl3Plus;
|
||||||
maintainers = with maintainers; [ flokli kaiha ];
|
maintainers = with maintainers; [ flokli kaiha ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
{ lib, stdenv
|
{ lib, stdenv
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, pkgconfig
|
, pkgconfig
|
||||||
|
, fetchpatch
|
||||||
, python3
|
, python3
|
||||||
, meson
|
, meson
|
||||||
, ninja
|
, ninja
|
||||||
@@ -31,6 +32,16 @@ stdenv.mkDerivation rec {
|
|||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# fix compilation with gcc10
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/parnold-x/libqalculate/commit/4fa8f2cceada128ef19f82407226b2c230b780d5.patch";
|
||||||
|
extraPrefix = "subprojects/libqalculate/";
|
||||||
|
stripLen = "1";
|
||||||
|
sha256 = "0kbff623zl0s6yx5avx068f2apwzxzvihjahja4qhlkqkhhzj9dm";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
glib # post_install.py
|
glib # post_install.py
|
||||||
gtk3 # post_install.py
|
gtk3 # post_install.py
|
||||||
|
|||||||
@@ -20,6 +20,9 @@ buildPythonApplication rec {
|
|||||||
gappsWrapperArgs+=(--prefix PATH : ${lib.makeBinPath [ ffmpeg_3 ]})
|
gappsWrapperArgs+=(--prefix PATH : ${lib.makeBinPath [ ffmpeg_3 ]})
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# no tests
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A native Linux GUI for Chromecasting local files";
|
description = "A native Linux GUI for Chromecasting local files";
|
||||||
homepage = "https://github.com/keredson/gnomecast";
|
homepage = "https://github.com/keredson/gnomecast";
|
||||||
|
|||||||
@@ -7,12 +7,11 @@
|
|||||||
, six
|
, six
|
||||||
, stevedore
|
, stevedore
|
||||||
, pyyaml
|
, pyyaml
|
||||||
, unicodecsv
|
|
||||||
, cmd2
|
, cmd2
|
||||||
, pytest
|
, pytestCheckHook
|
||||||
, mock
|
|
||||||
, testtools
|
, testtools
|
||||||
, fixtures
|
, fixtures
|
||||||
|
, which
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@@ -32,20 +31,21 @@ buildPythonPackage rec {
|
|||||||
stevedore
|
stevedore
|
||||||
pyyaml
|
pyyaml
|
||||||
cmd2
|
cmd2
|
||||||
unicodecsv
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# remove version constraints
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
sed -i '/cmd2/c\cmd2' requirements.txt
|
sed -i -e '/cmd2/c\cmd2' -e '/PrettyTable/c\PrettyTable' requirements.txt
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkInputs = [ fixtures mock pytest testtools ];
|
checkInputs = [ fixtures pytestCheckHook testtools which ];
|
||||||
# add some tests
|
# add some tests
|
||||||
checkPhase = ''
|
pytestFlagsArray = [
|
||||||
pytest cliff/tests/test_{utils,app,command,help,lister}.py \
|
"cliff/tests/test_utils.py"
|
||||||
-k 'not interactive_mode'
|
"cliff/tests/test_app.py"
|
||||||
'';
|
"cliff/tests/test_command.py"
|
||||||
|
"cliff/tests/test_help.py"
|
||||||
|
"cliff/tests/test_lister.py"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Command Line Interface Formulation Framework";
|
description = "Command Line Interface Formulation Framework";
|
||||||
|
|||||||
@@ -29,10 +29,6 @@ buildPythonPackage rec {
|
|||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [ pytestCheckHook Rtree ];
|
|
||||||
disabledTests = [ "web" ];
|
|
||||||
pytestFlagsArray = [ "geopandas" ];
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
pandas
|
pandas
|
||||||
shapely
|
shapely
|
||||||
@@ -41,6 +37,11 @@ buildPythonPackage rec {
|
|||||||
pyproj
|
pyproj
|
||||||
];
|
];
|
||||||
|
|
||||||
|
doCheck = !stdenv.isDarwin;
|
||||||
|
checkInputs = [ pytestCheckHook Rtree ];
|
||||||
|
disabledTests = [ "web" ];
|
||||||
|
pytestFlagsArray = [ "geopandas" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python geospatial data analysis framework";
|
description = "Python geospatial data analysis framework";
|
||||||
homepage = "https://geopandas.org";
|
homepage = "https://geopandas.org";
|
||||||
|
|||||||
@@ -11,6 +11,10 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
propagatedBuildInputs = [ libguestfs qemu ];
|
propagatedBuildInputs = [ libguestfs qemu ];
|
||||||
|
|
||||||
|
# no tests
|
||||||
|
doCheck = false;
|
||||||
|
pythonImportsCheck = [ "guestfs" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://libguestfs.org/guestfs-python.3.html";
|
homepage = "https://libguestfs.org/guestfs-python.3.html";
|
||||||
description = "Use libguestfs from Python";
|
description = "Use libguestfs from Python";
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ buildPythonPackage rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
# no tests
|
# no tests
|
||||||
|
doCheck = false;
|
||||||
pythonImportsCheck = [ "keep" ];
|
pythonImportsCheck = [ "keep" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{ lib, stdenv
|
{ lib
|
||||||
|
, stdenv
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, notmuch
|
, notmuch
|
||||||
, python
|
, python
|
||||||
@@ -13,6 +14,10 @@ buildPythonPackage {
|
|||||||
|
|
||||||
buildInputs = [ python notmuch cffi ];
|
buildInputs = [ python notmuch cffi ];
|
||||||
|
|
||||||
|
# no tests
|
||||||
|
doCheck = false;
|
||||||
|
pythonImportsCheck = [ "notmuch2" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Pythonic bindings for the notmuch mail database using CFFI";
|
description = "Pythonic bindings for the notmuch mail database using CFFI";
|
||||||
homepage = "https://notmuchmail.org/";
|
homepage = "https://notmuchmail.org/";
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{ lib, stdenv
|
{ lib
|
||||||
|
, stdenv
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, notmuch
|
, notmuch
|
||||||
, python
|
, python
|
||||||
@@ -16,6 +17,10 @@ buildPythonPackage {
|
|||||||
notmuch/globals.py
|
notmuch/globals.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# no tests
|
||||||
|
doCheck = false;
|
||||||
|
pythonImportsCheck = [ "notmuch" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A Python wrapper around notmuch";
|
description = "A Python wrapper around notmuch";
|
||||||
homepage = "https://notmuchmail.org/";
|
homepage = "https://notmuchmail.org/";
|
||||||
|
|||||||
@@ -1,24 +1,16 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, isPy3k
|
, pythonOlder
|
||||||
# propagatedBuildInputs
|
|
||||||
, aiohttp
|
, aiohttp
|
||||||
, async-timeout
|
, async-timeout
|
||||||
, semantic-version
|
, semantic-version
|
||||||
# buildInputs
|
|
||||||
, pytestrunner
|
, pytestrunner
|
||||||
# checkInputs
|
|
||||||
, pytest
|
|
||||||
, pytest-asyncio
|
|
||||||
, aresponses
|
|
||||||
}:
|
}:
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pyhaversion";
|
pname = "pyhaversion";
|
||||||
version = "3.4.2";
|
version = "3.4.2";
|
||||||
|
disabled = pythonOlder "3.8";
|
||||||
# needs aiohttp which is py3k-only
|
|
||||||
disabled = !isPy3k;
|
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
@@ -35,15 +27,14 @@ buildPythonPackage rec {
|
|||||||
pytestrunner
|
pytestrunner
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
# no tests
|
||||||
pytest
|
doCheck = false;
|
||||||
pytest-asyncio
|
pythonImportsCheck = [ "pyhaversion" ];
|
||||||
aresponses
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A python module to the newest version number of Home Assistant";
|
description = "A python module to the newest version number of Home Assistant";
|
||||||
homepage = "https://github.com/ludeeus/pyhaversion";
|
homepage = "https://github.com/ludeeus/pyhaversion";
|
||||||
|
license = with licenses; [ mit ];
|
||||||
maintainers = [ maintainers.makefu ];
|
maintainers = [ maintainers.makefu ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,24 @@
|
|||||||
|
{ lib, buildPythonPackage, fetchPypi, python-language-server }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "pyls-spyder";
|
||||||
|
version = "0.3.0";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "07apxh12b8ybkx5izr7pg8kbg5g5wgzw7vh5iy2n8dhiqarzp7s1";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ python-language-server ];
|
||||||
|
|
||||||
|
# no tests
|
||||||
|
doCheck = false;
|
||||||
|
pythonImportsCheck = [ "pyls_spyder" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Spyder extensions for the python-language-server";
|
||||||
|
homepage = "https://github.com/spyder-ide/pyls-spyder";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,43 +1,25 @@
|
|||||||
{ lib, stdenv, buildPythonPackage, fetchFromGitHub, pythonOlder
|
{ stdenv, lib, buildPythonPackage, fetchFromGitHub, pythonOlder
|
||||||
, pytest, mock, pytestcov, coverage
|
, pytestCheckHook, mock, pytestcov, coverage
|
||||||
, future, futures, ujson, isPy38
|
, future, futures, ujson, isPy38
|
||||||
, fetchpatch
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "python-jsonrpc-server";
|
pname = "python-jsonrpc-server";
|
||||||
version = "0.3.4";
|
version = "0.4.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "palantir";
|
owner = "palantir";
|
||||||
repo = "python-jsonrpc-server";
|
repo = "python-jsonrpc-server";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "027sx5pv4i9a192kr00bjjcxxprh2xyr8q5372q8ghff3xryk9dd";
|
sha256 = "0pcf50qvcxqnz3db58whqd8z89cdph19pfs1whgfm0zmwbwk0lw6";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
sed -i "s/version=versioneer.get_version(),/version=\"$version\",/g" setup.py
|
sed -i "s/version=versioneer.get_version(),/version=\"$version\",/g" setup.py
|
||||||
# https://github.com/palantir/python-jsonrpc-server/issues/36
|
|
||||||
sed -iEe "s!'ujson.*\$!'ujson',!" setup.py
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
pytest mock pytestcov coverage
|
pytestCheckHook mock pytestcov coverage
|
||||||
];
|
|
||||||
|
|
||||||
checkPhase = ''
|
|
||||||
pytest
|
|
||||||
'';
|
|
||||||
|
|
||||||
patches = [
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://github.com/palantir/python-jsonrpc-server/commit/0a04cc4e9d44233b1038b12d63cd3bd437c2374e.patch";
|
|
||||||
sha256 = "177zdnp1808r2pg189bvzab44l8i2alsgv04kmrlhhnv40h66qyg";
|
|
||||||
})
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://github.com/palantir/python-jsonrpc-server/commit/5af6e43d0c1fb9a6a29b96d38cfd6dbeec85d0ea.patch";
|
|
||||||
sha256 = "1gx7lc1jxar1ngqqfkdn21s46y1mfnjf7ky2886ydk53nkaba91m";
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [ future ujson ]
|
propagatedBuildInputs = [ future ujson ]
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{ lib, stdenv, buildPythonPackage, fetchFromGitHub, fetchpatch, pythonOlder, isPy27
|
{ stdenv, lib, buildPythonPackage, fetchFromGitHub, pythonOlder, isPy27
|
||||||
, backports_functools_lru_cache, configparser, futures, future, jedi, pluggy, python-jsonrpc-server, flake8
|
, backports_functools_lru_cache, configparser, futures, future, jedi, pluggy, python-jsonrpc-server, flake8
|
||||||
, pytestCheckHook, mock, pytestcov, coverage, setuptools, ujson
|
, pytestCheckHook, mock, pytestcov, coverage, setuptools, ujson, flaky
|
||||||
, # Allow building a limited set of providers, e.g. ["pycodestyle"].
|
, # Allow building a limited set of providers, e.g. ["pycodestyle"].
|
||||||
providers ? ["*"]
|
providers ? ["*"]
|
||||||
# The following packages are optional and
|
# The following packages are optional and
|
||||||
@@ -21,33 +21,33 @@ in
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "python-language-server";
|
pname = "python-language-server";
|
||||||
version = "0.34.1";
|
version = "0.36.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "palantir";
|
owner = "palantir";
|
||||||
repo = "python-language-server";
|
repo = "python-language-server";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-/tVzaoyUO6+7DSvnf3JxpcTY0rU+hHBu5qlru/ZTpxU=";
|
sha256 = "07x6jr4z20jxn03bxblwc8vk0ywha492cgwfhj7q97nb5cm7kx0q";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
propagatedBuildInputs = [ setuptools jedi pluggy future python-jsonrpc-server flake8 ujson ]
|
||||||
# https://github.com/palantir/python-language-server/pull/851
|
++ stdenv.lib.optional (withProvider "autopep8") autopep8
|
||||||
(fetchpatch {
|
++ stdenv.lib.optional (withProvider "mccabe") mccabe
|
||||||
url = "https://github.com/palantir/python-language-server/commit/f513f3297132492dd41e001d943980e6c4f40809.patch";
|
++ stdenv.lib.optional (withProvider "pycodestyle") pycodestyle
|
||||||
sha256 = "04c9hrb3dzlfchjk4625ipazyfcbq6qq2kj2hg3zf2xsny2jcvi5";
|
++ stdenv.lib.optional (withProvider "pydocstyle") pydocstyle
|
||||||
})
|
++ stdenv.lib.optional (withProvider "pyflakes") pyflakes
|
||||||
];
|
++ stdenv.lib.optional (withProvider "pylint") pylint
|
||||||
|
++ stdenv.lib.optional (withProvider "rope") rope
|
||||||
|
++ stdenv.lib.optional (withProvider "yapf") yapf
|
||||||
|
++ stdenv.lib.optional isPy27 configparser
|
||||||
|
++ stdenv.lib.optionals (pythonOlder "3.2") [ backports_functools_lru_cache futures ];
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
# https://github.com/palantir/python-jsonrpc-server/issues/36
|
|
||||||
sed -i -e 's!ujson<=!ujson>=!' setup.py
|
|
||||||
'';
|
|
||||||
|
|
||||||
# The tests require all the providers, disable otherwise.
|
# The tests require all the providers, disable otherwise.
|
||||||
doCheck = providers == ["*"];
|
doCheck = providers == ["*"];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
pytestCheckHook mock pytestcov coverage
|
pytestCheckHook mock pytestcov coverage flaky
|
||||||
# rope is technically a dependency, but we don't add it by default since we
|
# rope is technically a dependency, but we don't add it by default since we
|
||||||
# already have jedi, which is the preferred option
|
# already have jedi, which is the preferred option
|
||||||
rope
|
rope
|
||||||
@@ -67,20 +67,9 @@ buildPythonPackage rec {
|
|||||||
"test_matplotlib_completions"
|
"test_matplotlib_completions"
|
||||||
"test_snippet_parsing"
|
"test_snippet_parsing"
|
||||||
"test_numpy_hover"
|
"test_numpy_hover"
|
||||||
|
"test_symbols"
|
||||||
] ++ stdenv.lib.optional isPy27 "test_flake8_lint";
|
] ++ stdenv.lib.optional isPy27 "test_flake8_lint";
|
||||||
|
|
||||||
propagatedBuildInputs = [ setuptools jedi pluggy future python-jsonrpc-server flake8 ujson ]
|
|
||||||
++ stdenv.lib.optional (withProvider "autopep8") autopep8
|
|
||||||
++ stdenv.lib.optional (withProvider "mccabe") mccabe
|
|
||||||
++ stdenv.lib.optional (withProvider "pycodestyle") pycodestyle
|
|
||||||
++ stdenv.lib.optional (withProvider "pydocstyle") pydocstyle
|
|
||||||
++ stdenv.lib.optional (withProvider "pyflakes") pyflakes
|
|
||||||
++ stdenv.lib.optional (withProvider "pylint") pylint
|
|
||||||
++ stdenv.lib.optional (withProvider "rope") rope
|
|
||||||
++ stdenv.lib.optional (withProvider "yapf") yapf
|
|
||||||
++ stdenv.lib.optional isPy27 configparser
|
|
||||||
++ stdenv.lib.optionals (pythonOlder "3.2") [ backports_functools_lru_cache futures ];
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/palantir/python-language-server";
|
homepage = "https://github.com/palantir/python-language-server";
|
||||||
description = "An implementation of the Language Server Protocol for Python";
|
description = "An implementation of the Language Server Protocol for Python";
|
||||||
|
|||||||
@@ -43,6 +43,8 @@ buildPythonPackage rec {
|
|||||||
pytestFlagsArray = [ "--ignore examples/" ];
|
pytestFlagsArray = [ "--ignore examples/" ];
|
||||||
pythonImportsCheck = [ "pytile" ];
|
pythonImportsCheck = [ "pytile" ];
|
||||||
|
|
||||||
|
__darwinAllowLocalNetworking = true;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = " Python API for Tile Bluetooth trackers";
|
description = " Python API for Tile Bluetooth trackers";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ lib, stdenv, fetchPypi, buildPythonPackage, pytest, scrapy, bsddb3 }:
|
{ stdenv, lib, fetchPypi, buildPythonPackage, scrapy, bsddb3 }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "scrapy-deltafetch";
|
pname = "scrapy-deltafetch";
|
||||||
@@ -11,7 +11,9 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
propagatedBuildInputs = [ bsddb3 scrapy ];
|
propagatedBuildInputs = [ bsddb3 scrapy ];
|
||||||
|
|
||||||
checkInputs = [ pytest ];
|
# no tests
|
||||||
|
doCheck = false;
|
||||||
|
pythonImportsCheck = [ "scrapy_deltafetch" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Scrapy spider middleware to ignore requests to pages containing items seen in previous crawls";
|
description = "Scrapy spider middleware to ignore requests to pages containing items seen in previous crawls";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ lib, stdenv, fetchPypi, buildPythonPackage, pytest, hypothesis, scrapy }:
|
{ stdenv, lib, fetchPypi, buildPythonPackage, scrapy, six }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "scrapy-splash";
|
pname = "scrapy-splash";
|
||||||
@@ -9,7 +9,11 @@ buildPythonPackage rec {
|
|||||||
sha256 = "1dg7csdza2hzqskd9b9gx0v3saqsch4f0fwdp0a3p0822aqqi488";
|
sha256 = "1dg7csdza2hzqskd9b9gx0v3saqsch4f0fwdp0a3p0822aqqi488";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ pytest hypothesis scrapy ];
|
propagatedBuildInputs = [ scrapy six ];
|
||||||
|
|
||||||
|
# no tests
|
||||||
|
doCheck = false;
|
||||||
|
pythonImportsCheck = [ "scrapy_splash" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Scrapy+Splash for JavaScript integration";
|
description = "Scrapy+Splash for JavaScript integration";
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{ lib, stdenv
|
{ lib
|
||||||
|
, stdenv
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, isPy27
|
, isPy27
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
@@ -79,7 +80,10 @@ buildPythonPackage rec {
|
|||||||
"test_retry_dns_error"
|
"test_retry_dns_error"
|
||||||
"test_custom_asyncio_loop_enabled_true"
|
"test_custom_asyncio_loop_enabled_true"
|
||||||
"test_custom_loop_asyncio"
|
"test_custom_loop_asyncio"
|
||||||
] ++ stdenv.lib.optionals stdenv.isDarwin [ "test_xmliter_encoding" ];
|
] ++ stdenv.lib.optionals stdenv.isDarwin [
|
||||||
|
"test_xmliter_encoding"
|
||||||
|
"test_download"
|
||||||
|
];
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
@@ -92,6 +96,8 @@ buildPythonPackage rec {
|
|||||||
install -m 644 -D extras/scrapy_zsh_completion $out/share/zsh/site-functions/_scrapy
|
install -m 644 -D extras/scrapy_zsh_completion $out/share/zsh/site-functions/_scrapy
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
__darwinAllowLocalNetworking = true;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A fast high-level web crawling and web scraping framework, used to crawl websites and extract structured data from their pages";
|
description = "A fast high-level web crawling and web scraping framework, used to crawl websites and extract structured data from their pages";
|
||||||
homepage = "https://scrapy.org/";
|
homepage = "https://scrapy.org/";
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
psutil, pyflakes, rope, numpy, scipy, matplotlib, pylint, keyring, numpydoc,
|
psutil, pyflakes, rope, numpy, scipy, matplotlib, pylint, keyring, numpydoc,
|
||||||
qtconsole, qtawesome, nbconvert, mccabe, pyopengl, cloudpickle, pygments,
|
qtconsole, qtawesome, nbconvert, mccabe, pyopengl, cloudpickle, pygments,
|
||||||
spyder-kernels, qtpy, pyzmq, chardet, qdarkstyle, watchdog, python-language-server
|
spyder-kernels, qtpy, pyzmq, chardet, qdarkstyle, watchdog, python-language-server
|
||||||
, pyqtwebengine, atomicwrites, pyxdg, diff-match-patch
|
, pyqtwebengine, atomicwrites, pyxdg, diff-match-patch, three-merge, pyls-black, pyls-spyder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@@ -22,7 +22,7 @@ buildPythonPackage rec {
|
|||||||
intervaltree jedi pycodestyle psutil pyflakes rope numpy scipy matplotlib pylint keyring
|
intervaltree jedi pycodestyle psutil pyflakes rope numpy scipy matplotlib pylint keyring
|
||||||
numpydoc qtconsole qtawesome nbconvert mccabe pyopengl cloudpickle spyder-kernels
|
numpydoc qtconsole qtawesome nbconvert mccabe pyopengl cloudpickle spyder-kernels
|
||||||
pygments qtpy pyzmq chardet pyqtwebengine qdarkstyle watchdog python-language-server
|
pygments qtpy pyzmq chardet pyqtwebengine qdarkstyle watchdog python-language-server
|
||||||
atomicwrites pyxdg diff-match-patch
|
atomicwrites pyxdg diff-match-patch three-merge pyls-black pyls-spyder
|
||||||
];
|
];
|
||||||
|
|
||||||
# There is no test for spyder
|
# There is no test for spyder
|
||||||
@@ -51,7 +51,7 @@ buildPythonPackage rec {
|
|||||||
postInstall = ''
|
postInstall = ''
|
||||||
# add Python libs to env so Spyder subprocesses
|
# add Python libs to env so Spyder subprocesses
|
||||||
# created to run compute kernels don't fail with ImportErrors
|
# created to run compute kernels don't fail with ImportErrors
|
||||||
wrapProgram $out/bin/spyder3 --prefix PYTHONPATH : "$PYTHONPATH"
|
wrapProgram $out/bin/spyder --prefix PYTHONPATH : "$PYTHONPATH"
|
||||||
|
|
||||||
# Create desktop item
|
# Create desktop item
|
||||||
mkdir -p $out/share/icons
|
mkdir -p $out/share/icons
|
||||||
|
|||||||
@@ -18,7 +18,8 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
substituteInPlace setup.py \
|
substituteInPlace setup.py \
|
||||||
--replace 'requests>=2.24.0' 'requests~=2.23'
|
--replace 'requests>=2.24.0' 'requests~=2.23' \
|
||||||
|
--replace 'flask-cors==3.0.8' 'flask-cors'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
@@ -27,6 +28,8 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
checkInputs = [ pytestCheckHook mock ];
|
checkInputs = [ pytestCheckHook mock ];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "SwSpotify" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/SwagLyrics/SwSpotify";
|
homepage = "https://github.com/SwagLyrics/SwSpotify";
|
||||||
description = "Library to get the currently playing song and artist from Spotify";
|
description = "Library to get the currently playing song and artist from Spotify";
|
||||||
|
|||||||
@@ -0,0 +1,24 @@
|
|||||||
|
{ lib, buildPythonPackage, fetchPypi, diff-match-patch }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "three-merge";
|
||||||
|
version = "0.1.1";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "0w6rv7rv1zm901wbjkmm6d3vkwyf3csja9p37bb60mar8khszxk0";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ diff-match-patch ];
|
||||||
|
|
||||||
|
dontUseSetuptoolsCheck = true;
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "three_merge" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Simple library for merging two strings with respect to a base one";
|
||||||
|
homepage = "https://github.com/spyder-ide/three-merge";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -3,7 +3,6 @@
|
|||||||
, pythonOlder
|
, pythonOlder
|
||||||
, isPy27
|
, isPy27
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, nose
|
|
||||||
, noise
|
, noise
|
||||||
, numpy
|
, numpy
|
||||||
, pyplatec
|
, pyplatec
|
||||||
@@ -11,6 +10,7 @@
|
|||||||
, purepng
|
, purepng
|
||||||
, h5py
|
, h5py
|
||||||
, gdal
|
, gdal
|
||||||
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@@ -47,13 +47,12 @@ buildPythonPackage rec {
|
|||||||
--replace 'PyPlatec==1.4.0' 'PyPlatec' \
|
--replace 'PyPlatec==1.4.0' 'PyPlatec' \
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# with python<3.5, unittest fails to discover tests because of their filenames
|
|
||||||
# so nose is used instead.
|
|
||||||
doCheck = !isPy27; # google namespace clash
|
doCheck = !isPy27; # google namespace clash
|
||||||
checkInputs = stdenv.lib.optional (pythonOlder "3.5") [ nose ];
|
checkInputs = [ pytestCheckHook ];
|
||||||
postCheck = stdenv.lib.optionalString (pythonOlder "3.5") ''
|
|
||||||
nosetests tests
|
disabledTests = [
|
||||||
'';
|
"TestSerialization"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "http://world-engine.org";
|
homepage = "http://world-engine.org";
|
||||||
|
|||||||
@@ -20,7 +20,8 @@ buildPythonPackage rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
# https://github.com/NixOS/nixpkgs/pull/107872#issuecomment-752175866
|
# https://github.com/NixOS/nixpkgs/pull/107872#issuecomment-752175866
|
||||||
doCheck = stdenv.isLinux;
|
# cannot import name '_gi' from partially initialized module 'gi' (most likely due to a circular import)
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "An interactive viewer for graphs written in Graphviz's dot";
|
description = "An interactive viewer for graphs written in Graphviz's dot";
|
||||||
|
|||||||
@@ -20,6 +20,8 @@ pythonPackages.buildPythonApplication rec {
|
|||||||
homepage = "https://nagstamon.ifw-dresden.de/";
|
homepage = "https://nagstamon.ifw-dresden.de/";
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
maintainers = with maintainers; [ pSub ];
|
maintainers = with maintainers; [ pSub ];
|
||||||
inherit version;
|
# fails to install with:
|
||||||
|
# TypeError: cannot unpack non-iterable bool object
|
||||||
|
broken = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5450,6 +5450,8 @@ in {
|
|||||||
|
|
||||||
pyls-mypy = callPackage ../development/python-modules/pyls-mypy { };
|
pyls-mypy = callPackage ../development/python-modules/pyls-mypy { };
|
||||||
|
|
||||||
|
pyls-spyder = callPackage ../development/python-modules/pyls-spyder { };
|
||||||
|
|
||||||
PyLTI = callPackage ../development/python-modules/pylti { };
|
PyLTI = callPackage ../development/python-modules/pylti { };
|
||||||
|
|
||||||
pymacaroons = callPackage ../development/python-modules/pymacaroons { };
|
pymacaroons = callPackage ../development/python-modules/pymacaroons { };
|
||||||
@@ -7508,6 +7510,8 @@ in {
|
|||||||
|
|
||||||
threadpoolctl = callPackage ../development/python-modules/threadpoolctl { };
|
threadpoolctl = callPackage ../development/python-modules/threadpoolctl { };
|
||||||
|
|
||||||
|
three-merge = callPackage ../development/python-modules/three-merge { };
|
||||||
|
|
||||||
thrift = callPackage ../development/python-modules/thrift { };
|
thrift = callPackage ../development/python-modules/thrift { };
|
||||||
|
|
||||||
thumbor = callPackage ../development/python-modules/thumbor { };
|
thumbor = callPackage ../development/python-modules/thumbor { };
|
||||||
|
|||||||
Reference in New Issue
Block a user