Merge master into staging-next

This commit is contained in:
Frederik Rietdijk
2020-08-28 09:54:31 +02:00
162 changed files with 1141 additions and 381 deletions

View File

@@ -9,7 +9,7 @@ buildPythonPackage rec {
repo = pname;
rev = "v${version}";
sha256 = "0ljfpl8x069arzginvpi1v6hlaq4x2qpjqj01qds2ylz33scq8r4";
};
};
checkInputs = [ pytest ];
@@ -21,4 +21,3 @@ buildPythonPackage rec {
};
}

View File

@@ -15,7 +15,7 @@ buildPythonPackage rec {
rev = "v${version}";
sha256 = "1inak3y2win58zbzykfzy6xp00f276sqsz69h2nfsd93mpr74wf6";
};
nativeBuildInputs = [ poetry ];
preBuild = ''

View File

@@ -17,16 +17,16 @@
buildPythonPackage rec {
pname = "atlassian-python-api";
version = "1.16.0";
src = fetchPypi {
inherit pname version;
sha256 = "1sp036192vdl5nqifcswg2j838vf8i9k8bfd0w4qh1vz4f0pjz7y";
};
checkInputs = [ pytestrunner pytest ];
propagatedBuildInputs = [ oauthlib requests requests_oauthlib six ];
meta = with lib; {
description = "Python Atlassian REST API Wrapper";
homepage = "https://github.com/atlassian-api/atlassian-python-api";
@@ -34,4 +34,3 @@ buildPythonPackage rec {
maintainers = [ maintainers.arnoldfarkas ];
};
}

View File

@@ -25,4 +25,4 @@ buildPythonPackage rec {
homepage = "http://audiotools.sourceforge.net/";
license = lib.licenses.gpl2Plus;
};
}
}

View File

@@ -10,12 +10,12 @@
buildPythonPackage rec {
pname = "azure-mgmt-cosmosdb";
version = "0.16.0";
version = "1.0.0";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "308aeabdff61bf35ceb7a3d6dd19f1ab69a041bd92c85ee24d98a624968697f3";
sha256 = "e08b37aea8e6b62596f55f9beb924e1759b2dc424c180ab2e752153a2b01b723";
};
propagatedBuildInputs = [

View File

@@ -5,13 +5,13 @@
}:
buildPythonPackage rec {
version = "1.6.0";
version = "1.7.0";
pname = "azure-mgmt-hdinsight";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "b1d06279307c41da5e0a5c9722aa6b36ce3b2c212534a54767210639451b9800";
sha256 = "9d1120bd9760687d87594ec5ce9257b7335504afbe55b3cda79462c1e07a095b";
extension = "zip";
};

View File

@@ -25,7 +25,7 @@ buildPythonPackage rec {
repo = pname;
rev = "v${version}";
sha256 = "0cc3i4wznqb7lk8n6jkprvkpsby6r7khkxqwn75k8f01mxgjfpvf";
};
patches = [

View File

@@ -22,7 +22,7 @@ buildPythonPackage rec {
scikitlearn
scipy
];
checkInputs = [ pytest ];
checkPhase = ''
pytest tests

View File

@@ -15,7 +15,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [ ];
# upstream doesn't contain tests
doCheck = false;
pythonImportsCheck = [ "bespon" ];
meta = with stdenv.lib; {
description = "Encodes and decodes data in the BespON format.";

View File

@@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "bitarray";
version = "1.5.1";
version = "1.5.3";
src = fetchPypi {
inherit pname version;
sha256 = "45bba08bc142781ec7e18a847735219390808f9b6279c356252edddaee1f5fcd";
sha256 = "567631fc922b1c2c528c376795f18dcc0604d18702e0b8b50e8e35f0474214a5";
};
meta = with lib; {

View File

@@ -1,13 +1,13 @@
{ lib, fetchPypi, buildPythonPackage, docutils, six, sphinx, isPy3k, isPy27 }:
buildPythonPackage rec {
version = "4.19.2";
version = "4.20.0";
pname = "breathe";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "1mzcggfr61lqkn6sghg842ah9slfjr0ikc776vbx60iqqw9l1gvn";
sha256 = "d7e1e1ee9b0615423b7e9abc64f0afe12e7bcf32c817a8fd1d9c8c3c4b3d71c9";
};
propagatedBuildInputs = [ docutils six sphinx ];

View File

@@ -33,4 +33,4 @@ buildPythonPackage rec {
homepage = "https://github.com/python-hyper/brotlipy/";
license = lib.licenses.mit;
};
}
}

View File

@@ -43,4 +43,4 @@ buildPythonPackage rec {
description = "A simple, correct PEP517 package builder";
license = lib.licenses.mit;
};
}
}

View File

@@ -14,7 +14,7 @@ buildPythonPackage rec {
};
propagatedBuildInputs = [ pyopenssl ];
doCheck = false; #no tests were included
meta = with stdenv.lib; {

View File

@@ -28,4 +28,4 @@ buildPythonPackage rec {
description = "Time-handling functionality from netcdf4-python";
};
}
}

View File

@@ -34,7 +34,7 @@ buildPythonPackage rec {
# pytest
# pytest-asyncio
# ];
#
#
# # Fails with : ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 6379)
# # (even with a local redis instance running)
# checkPhase = ''

View File

@@ -23,4 +23,4 @@ buildPythonPackage rec {
license = licenses.mit;
homepage = "https://github.com/jaraco/configparser";
};
}
}

View File

@@ -19,7 +19,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [
jinja2 future binaryornot click whichcraft poyo jinja2_time requests python-slugify
];
# requires network access for cloning git repos
doCheck = false;
checkPhase = ''

View File

@@ -24,4 +24,4 @@ buildPythonPackage rec {
homepage = "https://github.com/nucleic/cppy";
license = lib.licenses.bsd3;
};
}
}

View File

@@ -20,7 +20,7 @@ buildPythonPackage rec {
preConfigure = ''
export CUDA_PATH=${cudatoolkit}
'';
'';
propagatedBuildInputs = [
cudatoolkit

View File

@@ -11,18 +11,19 @@
, scs
, six
# Check inputs
, pytestCheckHook
, nose
}:
buildPythonPackage rec {
pname = "cvxpy";
version = "1.1.4";
version = "1.1.5";
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "1f37da2f891508ebc2bbb2b75c46a2076be39a60a45c8a88261e000e8aabeef2";
sha256 = "7c826a874db2e4cefe54e63ebd3a3763d0d72e55a17c7d1cfec80008a87b8d81";
};
propagatedBuildInputs = [
@@ -36,15 +37,19 @@ buildPythonPackage rec {
six
];
checkInputs = [ nose ];
checkPhase = ''
nosetests cvxpy
'';
checkInputs = [ pytestCheckHook nose ];
pytestFlagsArray = [ "./cvxpy" ];
# Disable the slowest benchmarking tests, cuts test time in half
disabledTests = [
"test_tv_inpainting"
"test_diffcp_sdp_example"
];
meta = with lib; {
description = "A domain-specific language for modeling convex optimization problems in Python.";
homepage = "https://www.cvxpy.org/";
downloadPage = "https://github.com/cvxgrp/cvxpy/releases";
changelog = "https://github.com/cvxgrp/cvxpy/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ drewrisinger ];
};

View File

@@ -1,7 +1,7 @@
{ stdenv
, buildPythonPackage
, fetchPypi, isPy27
, ldap , django
, ldap , django
, mock
}:
@@ -14,8 +14,8 @@ buildPythonPackage rec {
sha256 = "11af1773b08613339d2c3a0cec1308a4d563518f17b1719c3759994d0b4d04bf";
};
propagatedBuildInputs = [ ldap django ];
checkInputs = [ mock ];
propagatedBuildInputs = [ ldap django ];
checkInputs = [ mock ];
# django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings
doCheck = false;

View File

@@ -11,7 +11,7 @@ buildPythonPackage rec {
sha256 = "2310291c7f40606be045938d65e117383549aa8a979c6c4b700464c6a6204a34";
};
propagatedBuildInputs = [ six django persisting-theory ];
propagatedBuildInputs = [ six django persisting-theory ];
# django.core.exceptions.ImproperlyConfigured: Requested setting DYNAMIC_PREFERENCES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings
doCheck = false;

View File

@@ -23,4 +23,4 @@ buildPythonPackage rec {
homepage = "https://github.com/goinnn/django-multiselectfield";
license = lib.licenses.lgpl3;
};
}
}

View File

@@ -3,17 +3,17 @@
buildPythonPackage rec {
pname = "djangorestframework_simplejwt";
version = "4.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "c315be70aa12a5f5790c0ab9acd426c3a58eebea65a77d0893248c5144a5080c";
};
propagatedBuildInputs = [ django djangorestframework pyjwt ];
# Test raises django.core.exceptions.ImproperlyConfigured
doCheck = false;
meta = with lib; {
description = "A minimal JSON Web Token authentication plugin for Django REST Framework";
homepage = "https://github.com/davesque/django-rest-framework-simplejwt";

View File

@@ -27,4 +27,4 @@ buildPythonPackage rec {
homepage = "https://pypi.python.org/pypi/fixtures";
license = lib.licenses.asl20;
};
}
}

View File

@@ -10,7 +10,7 @@ buildPythonPackage rec {
homepage = "https://github.com/marshmallow-code/flask-marshmallow";
description = "Flask + marshmallow for beautiful APIs";
license = lib.licenses.mit;
};
};
src = fetchPypi {
inherit pname version;

View File

@@ -10,7 +10,7 @@ buildPythonPackage rec {
};
propagatedBuildInputs = [ msgpack ];
# Tests fail because absent in package
doCheck = false;

View File

@@ -11,7 +11,7 @@ buildPythonPackage rec {
buildInputs = [ fuse ];
nativeBuildInputs = [ pkgconfig ];
# no tests in the Pypi archive
doCheck = false;
@@ -22,4 +22,3 @@ buildPythonPackage rec {
maintainers = with maintainers; [ psyanticy ];
};
}

View File

@@ -23,11 +23,11 @@ buildPythonPackage rec {
# No tests in archive
doCheck = false;
checkInputs = [ flake8 nose2 mock ];
propagatedBuildInputs = [ requests pyjwt ];
meta = with lib; {
description = "A convenient Pythonic interface to Globus REST APIs, including the Transfer API and the Globus Auth API.";
homepage = "https://github.com/globus/globus-sdk-python";

View File

@@ -13,14 +13,14 @@
buildPythonPackage rec {
pname = "graphviz";
version = "0.10.1";
version = "0.14.1";
# patch does not apply to PyPI tarball due to different line endings
src = fetchFromGitHub {
owner = "xflr6";
repo = "graphviz";
rev = version;
sha256 = "1vqk4xy45c72la56j24z9jmjp5a0aa2k32fybnlbkzqjvvbl72d8";
sha256 = "02bdiac5x93f2mjw5kpgs6kv81hzg07y0mw1nxvhyg8aignzmh3c";
};
patches = [
@@ -30,9 +30,9 @@ buildPythonPackage rec {
})
];
# Fontconfig error: Cannot load default config file
FONTCONFIG_FILE = makeFontsConf {
fontDirectories = [ freefont_ttf ];
# Fontconfig error: Cannot load default config file
FONTCONFIG_FILE = makeFontsConf {
fontDirectories = [ freefont_ttf ];
};
checkInputs = [ mock pytest pytest-mock pytestcov ];

View File

@@ -1,38 +1,39 @@
diff --git a/graphviz/backend.py b/graphviz/backend.py
index 704017b..fe4aefe 100644
index 6f4cc0c..bc4781e 100644
--- a/graphviz/backend.py
+++ b/graphviz/backend.py
@@ -114,7 +114,7 @@ def command(engine, format, filepath=None, renderer=None, formatter=None):
suffix = '.'.join(reversed(format_arg))
format_arg = ':'.join(format_arg)
@@ -122,7 +122,7 @@ def command(engine, format_, filepath=None, renderer=None, formatter=None):
raise ValueError('unknown formatter: %r' % formatter)
- cmd = [engine, '-T%s' % format_arg]
+ cmd = [os.path.join('@graphviz@/bin', engine), '-T%s' % format_arg]
rendered = None
if filepath is not None:
cmd.extend(['-O', filepath])
@@ -217,7 +217,7 @@ def version():
output_format = [f for f in (format_, renderer, formatter) if f is not None]
- cmd = [engine, '-T%s' % ':'.join(output_format)]
+ cmd = [os.path.join('@graphviz@/bin', engine), '-T%s' % ':'.join(output_format)]
if filepath is None:
rendered = None
@@ -255,7 +255,7 @@ def version():
subprocess.CalledProcessError: If the exit status is non-zero.
RuntimmeError: If the output cannot be parsed into a version number.
"""
- cmd = ['dot', '-V']
+ cmd = ['@graphviz@/bin/dot', '-V']
out, _ = run(cmd, check=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
info = out.decode('ascii')
out, _ = run(cmd, check=True, encoding='ascii',
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
diff --git a/tests/test_backend.py b/tests/test_backend.py
index 7ec12f7..2e8550d 100644
index 9f307f5..e43bf5b 100644
--- a/tests/test_backend.py
+++ b/tests/test_backend.py
@@ -47,6 +47,7 @@ def test_render_formatter_unknown():
render('dot', 'ps', 'nonfilepath', 'ps', '')
@@ -50,7 +50,7 @@ def test_run_encoding_mocked(mocker, Popen, input=u'sp\xe4m', encoding='utf-8'):
m.decode.assert_called_once_with(encoding)
-@pytest.exe
+@pytest.mark.skip(reason='empty $PATH has no effect')
@pytest.mark.usefixtures('empty_path')
def test_render_missing_executable():
with pytest.raises(ExecutableNotFound, match=r'execute'):
@@ -85,7 +86,7 @@ def test_render_mocked(capsys, mocker, Popen, quiet):
@pytest.mark.parametrize('func, args', [
(render, ['dot', 'pdf', 'nonfilepath']),
@@ -143,7 +143,7 @@ def test_render_mocked(capsys, mocker, Popen, quiet): # noqa: N803
assert render('dot', 'pdf', 'nonfilepath', quiet=quiet) == 'nonfilepath.pdf'
@@ -40,25 +41,17 @@ index 7ec12f7..2e8550d 100644
+ Popen.assert_called_once_with(['@graphviz@/bin/dot', '-Tpdf', '-O', 'nonfilepath'],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
startupinfo=mocker.ANY)
@@ -94,6 +95,7 @@ def test_render_mocked(capsys, mocker, Popen, quiet):
assert capsys.readouterr() == ('', '' if quiet else 'stderr')
+@pytest.mark.skip(reason='empty $PATH has no effect')
@pytest.mark.usefixtures('empty_path')
def test_pipe_missing_executable():
with pytest.raises(ExecutableNotFound, match=r'execute'):
@@ -143,7 +145,7 @@ def test_pipe_pipe_invalid_data_mocked(mocker, py2, Popen, quiet): # noqa: N803
assert e.value.returncode is mocker.sentinel.returncode
cwd=None, startupinfo=mocker.ANY)
@@ -201,7 +201,7 @@ def test_pipe_pipe_invalid_data_mocked(mocker, py2, Popen, quiet): # noqa: N803
assert e.value.stdout is mocker.sentinel.out
assert e.value.stderr is err
e.value.stdout = mocker.sentinel.new_stdout
assert e.value.stdout is mocker.sentinel.new_stdout
- Popen.assert_called_once_with(['dot', '-Tpng'],
+ Popen.assert_called_once_with(['@graphviz@/bin/dot', '-Tpng'],
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
@@ -166,7 +168,7 @@ def test_pipe_mocked(capsys, mocker, Popen, quiet): # noqa: N803
@@ -224,7 +224,7 @@ def test_pipe_mocked(capsys, mocker, Popen, quiet): # noqa: N803
assert pipe('dot', 'png', b'nongraph', quiet=quiet) is mocker.sentinel.out
@@ -67,16 +60,8 @@ index 7ec12f7..2e8550d 100644
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
@@ -176,6 +178,7 @@ def test_pipe_mocked(capsys, mocker, Popen, quiet): # noqa: N803
assert capsys.readouterr() == ('', '' if quiet else 'stderr')
+@pytest.mark.skip(reason='empty $PATH has no effect')
@pytest.mark.usefixtures('empty_path')
def test_version_missing_executable():
with pytest.raises(ExecutableNotFound, match=r'execute'):
@@ -196,7 +199,7 @@ def test_version_parsefail_mocked(mocker, Popen):
with pytest.raises(RuntimeError):
@@ -250,7 +250,7 @@ def test_version_parsefail_mocked(mocker, Popen): # noqa: N803
with pytest.raises(RuntimeError, match=r'nonversioninfo'):
version()
- Popen.assert_called_once_with(['dot', '-V'],
@@ -84,9 +69,9 @@ index 7ec12f7..2e8550d 100644
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
startupinfo=mocker.ANY)
@@ -211,7 +214,7 @@ def test_version_mocked(mocker, Popen):
@@ -269,7 +269,7 @@ def test_version_mocked(mocker, Popen, stdout, expected): # noqa: N803
assert version() == (1, 2, 3)
assert version() == expected
- Popen.assert_called_once_with(['dot', '-V'],
+ Popen.assert_called_once_with(['@graphviz@/bin/dot', '-V'],

View File

@@ -35,4 +35,4 @@ buildPythonPackage rec {
license = lib.licenses.bsd3;
};
}
}

View File

@@ -27,4 +27,4 @@ buildPythonPackage rec {
license = lib.licenses.mit;
};
}
}

View File

@@ -17,4 +17,4 @@ buildPythonPackage rec {
description = "Internationalized Domain Names in Applications (IDNA)";
license = lib.licenses.bsd3;
};
}
}

View File

@@ -19,7 +19,7 @@ buildPythonPackage rec {
substituteInPlace setup.py \
--replace "'opencv-python >= 3.4.5'," ""
'';
propagatedBuildInputs = [
numpy
scikitimage

View File

@@ -42,9 +42,9 @@ buildPythonPackage rec {
"test_subprocess_print"
"test_subprocess_error"
"test_ipython_start_kernel_no_userns"
# https://github.com/ipython/ipykernel/issues/506
"test_unc_paths"
"test_unc_paths"
] ++ lib.optionals (pythonOlder "3.8") [
# flaky test https://github.com/ipython/ipykernel/issues/485
"test_shutdown"

View File

@@ -25,4 +25,4 @@ buildPythonPackage rec {
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ lihop ];
};
}
}

View File

@@ -27,6 +27,6 @@ buildPythonPackage rec {
description = "Jupyter Sphinx Extensions";
homepage = "https://github.com/jupyter/jupyter-sphinx/";
license = licenses.bsd3;
};
};
}
}

View File

@@ -16,7 +16,7 @@ buildPythonPackage rec {
# No tests implemented
doCheck = false;
propagatedBuildInputs = [ jupyterhub ldap3 ];
meta = with lib; {

View File

@@ -6,11 +6,11 @@
buildPythonPackage rec {
pname = "jwcrypto";
version = "0.7";
version = "0.8";
src = fetchPypi {
inherit pname version;
sha256 = "002i60yidafpr642qcxrd74d8frbc4ci8vfysm05vqydcri1zgmd";
sha256 = "b7fee2635bbefdf145399392f5be26ad54161c8271c66b5fe107b4b452f06c24";
};
propagatedBuildInputs = [

View File

@@ -14,9 +14,9 @@ buildPythonPackage rec {
inherit pname version;
sha256 = "247800260cd38160c362d211dcaf4ed0f7816afb5efe56544748b21d6ad6d17f";
};
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-I${libcxx}/include/c++/v1";
nativeBuildInputs = [
cppy
];

View File

@@ -20,7 +20,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [ jinja2 requests pillow rasterio shapely ];
# Test cases are not running on pypi or GitHub
doCheck = false;
doCheck = false;
meta = with lib; {
homepage = "https://github.com/Labelbox/Labelbox";

View File

@@ -18,4 +18,4 @@ buildPythonPackage rec {
license = lib.licenses.bsd2;
homepage = "https://github.com/stefanholek/lazy";
};
}
}

View File

@@ -9,6 +9,7 @@
, audioread
, resampy
, soundfile
, pooch
}:
buildPythonPackage rec {
@@ -20,15 +21,21 @@ buildPythonPackage rec {
sha256 = "af0b9f2ed4bbf6aecbc448a4cd27c16453c397cb6bef0f0cfba0e63afea2b839";
};
propagatedBuildInputs = [ joblib matplotlib six scikitlearn decorator audioread resampy soundfile ];
propagatedBuildInputs = [ joblib matplotlib six scikitlearn decorator audioread resampy soundfile pooch ];
# No tests
# 1. Internet connection is required
# 2. Got error "module 'librosa' has no attribute 'version'"
doCheck = false;
# check that import works, this allows to capture errors like https://github.com/librosa/librosa/issues/1160
pythonImportsCheck = [ "librosa" ];
meta = with stdenv.lib; {
description = "Python module for audio and music processing";
homepage = "http://librosa.github.io/";
license = licenses.isc;
maintainers = with maintainers; [ GuillaumeDesforges ];
};
}

View File

@@ -28,4 +28,4 @@ buildPythonPackage rec {
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ jwiegley ];
};
}
}

View File

@@ -3,7 +3,7 @@
buildPythonPackage rec {
pname = "loguru";
version = "0.5.1";
disabled = isPy27;
src = fetchPypi {
inherit pname version;

View File

@@ -21,8 +21,8 @@ buildPythonPackage rec {
sha256 = "041cd779ae383fb5c56f2bb44824f4e80ba895febd9a3f21570ac274221c82e0";
};
propagatedBuildInputs = [ mozprofile mozversion browsermob-proxy moztest
wptserve manifestparser marionette_driver ];
propagatedBuildInputs = [ mozprofile mozversion browsermob-proxy moztest
wptserve manifestparser marionette_driver ];
meta = {
description = "Mozilla Marionette protocol test automation harness";

View File

@@ -16,7 +16,7 @@ buildPythonPackage rec {
sha256 = "99ca2513d4e2ca29a08e550346f23947a50627a2b02f6ad36a4550e779fa0ce8";
};
propagatedBuildInputs = [ mozversion mozrunner ];
propagatedBuildInputs = [ mozversion mozrunner ];
meta = {
description = "Mozilla Marionette driver";

View File

@@ -13,7 +13,7 @@ buildPythonPackage rec {
sha256 = "10y1cr933ajx9ni701ayb7r361pak9wrzr7pdpyx81kkbjddq7qa";
};
propagatedBuildInputs = [ moznetwork ];
propagatedBuildInputs = [ moznetwork ];
meta = {
description = "Webserver for Mozilla testing";

View File

@@ -14,7 +14,7 @@ buildPythonPackage rec {
sha256 = "0ws20l4ggb6mj7ycwrk5h7hj1jmj3mj0ca48k5jzsa4n042ahwrd";
};
propagatedBuildInputs = [ mozlog mozinfo ];
propagatedBuildInputs = [ mozlog mozinfo ];
meta = {
description = "Network utilities for Mozilla testing";

View File

@@ -18,8 +18,8 @@ buildPythonPackage rec {
sha256 = "2e50876bcdd74517e7b71f3e7a76102050edec255b3983403f1a63e7c8a41e7a";
};
propagatedBuildInputs = [
setuptools
propagatedBuildInputs = [
setuptools
] ++ lib.optionals (pythonOlder "3.8") [
importlib-metadata
];

View File

@@ -18,8 +18,8 @@ buildPythonPackage rec {
sha256 = "1fafe3f1ecabfb514a5285fca634a53c1b32a81cb0feb154264d55bf2ff22c17";
};
propagatedBuildInputs = [
setuptools
propagatedBuildInputs = [
setuptools
] ++ lib.optionals (pythonOlder "3.8") [
importlib-metadata
];

View File

@@ -31,4 +31,4 @@ buildPythonPackage rec {
license = licenses.asl20;
maintainers = with maintainers; [ drewrisinger ];
};
}
}

View File

@@ -18,7 +18,7 @@
buildPythonPackage rec {
pname = "mask-rcnn";
version = "2.1";
src = fetchFromGitHub {
owner = "matterport";
repo = "Mask_RCNN";
@@ -49,4 +49,3 @@ buildPythonPackage rec {
maintainers = with maintainers; [ rakesh4g ];
};
}

View File

@@ -41,4 +41,4 @@ buildPythonPackage rec {
license = licenses.bsd2;
};
}
}

View File

@@ -21,4 +21,4 @@ buildPythonPackage rec {
license = licenses.mit;
maintainers = with maintainers; [ rakesh4g ];
};
}
}

View File

@@ -19,7 +19,7 @@ buildPythonPackage rec {
# package has no tests
doCheck = false;
propagatedBuildInputs = [ six pyjwt requests oauthlib requests_oauthlib ];
meta = with lib; {

View File

@@ -80,14 +80,14 @@ buildPythonPackage rec {
cp ${opensslLegacyStatic.out}/lib/libssl.a \
${opensslLegacyStatic.out}/lib/libcrypto.a \
deps/openssl-OpenSSL_1_0_2e/
ln -s ${opensslLegacyStatic.out.dev}/include deps/openssl-OpenSSL_1_0_2e/include
ln -s ${opensslLegacyStatic.out.dev}/include deps/openssl-OpenSSL_1_0_2e/include
ln -s ${opensslLegacyStatic.bin}/bin deps/openssl-OpenSSL_1_0_2e/apps
mkdir -p deps/openssl-OpenSSL_1_1_1/
cp ${opensslStatic.out}/lib/libssl.a \
${opensslStatic.out}/lib/libcrypto.a \
deps/openssl-OpenSSL_1_1_1/
ln -s ${opensslStatic.out.dev}/include deps/openssl-OpenSSL_1_1_1/include
ln -s ${opensslStatic.out.dev}/include deps/openssl-OpenSSL_1_1_1/include
ln -s ${opensslStatic.bin}/bin deps/openssl-OpenSSL_1_1_1/apps
mkdir -p deps/zlib-1.2.11/

View File

@@ -3,22 +3,22 @@
buildPythonPackage rec {
pname = "nbconflux";
version = "0.7.0";
src = fetchFromGitHub {
owner = "Valassis-Digital-Media";
repo = "nbconflux";
rev = version;
sha256 = "1708qkb275d6f7b4b5zmqx3i0jh56nrx2n9rwwp5nbaah5p2wwlh";
};
propagatedBuildInputs = [ nbconvert requests ];
checkInputs = [ pytest responses ];
checkPhase = ''
pytest tests
'';
meta = with lib; {
description = "Converts Jupyter Notebooks to Atlassian Confluence (R) pages using nbconvert";
homepage = "https://github.com/Valassis-Digital-Media/nbconflux";

View File

@@ -18,7 +18,7 @@ buildPythonPackage rec {
# Tests require Xorg and Dbus instance
doCheck = false;
propagatedBuildInputs = [ pygobject3
dbus-python ];
dbus-python ];
meta = {
description = "Pure Python interface to DBus notifications";

View File

@@ -29,10 +29,10 @@ buildPythonPackage rec {
# No tests in archive
doCheck = false;
checkInputs = [ globus-sdk mwoauth codecov flake8 pytest
pytestcov pytest-tornado requests-mock pyjwt ];
propagatedBuildInputs = [ jupyterhub ];
disabled = pythonOlder "3.4";

View File

@@ -20,7 +20,7 @@ buildPythonPackage rec {
propagatedBuildInputs = lib.optional isPy27 futures;
checkInputs = [ gevent mock pytest tornado ];
checkPhase = ''
pytest
'';

View File

@@ -10,9 +10,9 @@ buildPythonPackage rec {
};
checkInputs = [ pytest ];
checkPhase = ''
pytest
pytest
'';
meta = with stdenv.lib; {
@@ -22,4 +22,3 @@ buildPythonPackage rec {
maintainers = with maintainers; [ psyanticy ];
};
}

View File

@@ -18,4 +18,4 @@ buildPythonPackage rec {
license = lib.licenses.mpl20;
maintainers = with lib.maintainers; [ copumpkin ];
};
}
}

View File

@@ -14,7 +14,7 @@ buildPythonPackage rec {
sha256 = "0k52qyxzdngdhyn4sya2qn1w1a4ll0mcla4h4gb1v91fk4lw25dm";
fetchSubmodules = true;
};
meta = with stdenv.lib; {
homepage = "https://github.com/ned14/pcpp";
description = "A C99 preprocessor written in pure Python";

View File

@@ -49,4 +49,4 @@ buildPythonPackage rec {
license = lib.licenses.mit;
homepage = "https://github.com/pypa/pep517";
};
}
}

View File

@@ -22,7 +22,7 @@ buildPythonPackage rec {
checkInputs = [
networkx
];
propagatedBuildInputs = [
numpy
cvxopt
@@ -31,7 +31,7 @@ buildPythonPackage rec {
checkPhase = ''
${python.interpreter} test.py
'';
meta = with lib; {
description = "A Python interface to conic optimization solvers";
homepage = "https://gitlab.com/picos-api/picos";

View File

@@ -10,7 +10,7 @@
buildPythonPackage rec {
pname = "pipx";
version = "0.15.5.0";
version = "0.15.5.1";
disabled = pythonOlder "3.6";
@@ -19,18 +19,11 @@ buildPythonPackage rec {
owner = "pipxproject";
repo = pname;
rev = version;
sha256 = "13z032i8r9f6d09hssvyjpxjacb4wgms5bh2i37da2ili9bh72m6";
sha256 = "0lq8dfkq4ji11r4k5csqzyv0757fbxiax6ixn94f9747zrikssf6";
};
propagatedBuildInputs = [ userpath argcomplete packaging ];
# avoid inconclusive venv assertion, see https://github.com/pipxproject/pipx/pull/477
# remove after PR is merged
postPatch = ''
substituteInPlace tests/helpers.py \
--replace 'assert getattr(sys, "base_prefix", sys.prefix) != sys.prefix, "Tests require venv"' ""
'';
checkInputs = [ pytestCheckHook ];
preCheck = ''

View File

@@ -16,4 +16,4 @@ buildPythonPackage rec {
inherit pname version;
sha256 = "1ps37vamqav6p277dlp51jnacd5q4x4z1x8y0nfjw3y8jsfy3f8n";
};
}
}

View File

@@ -0,0 +1,46 @@
{ stdenv
, buildPythonPackage
, isPy27
, fetchPypi
, pytestCheckHook
, packaging
, appdirs
, requests
}:
buildPythonPackage rec {
pname = "pooch";
version = "1.0.0";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "1k2vinlhkzl7lzhvbz20x3a2r2zqqila0yxg3a3fax2r6qxbxxzi";
};
propagatedBuildInputs = [ packaging appdirs requests ];
checkInputs = [ pytestCheckHook ];
disabledTests = [
"pooch_custom_url"
"pooch_download"
"pooch_logging_level"
"pooch_update"
"pooch_corrupted"
"check_availability"
"downloader"
"test_fetch"
"decompress"
"extractprocessor_fails"
"processor"
"integration"
];
meta = with stdenv.lib; {
description = "A friend to fetch your data files.";
homepage = "https://github.com/fatiando/pooch";
license = licenses.bsd3;
maintainers = with maintainers; [ GuillaumeDesforges ];
};
}

View File

@@ -29,7 +29,7 @@ buildPythonPackage rec {
checkPhase = ''
${python.interpreter} setup.py test
'';
meta = with stdenv.lib; {
description = "Cython hash tables that assume keys are pre-hashed";
homepage = "https://github.com/explosion/preshed";

View File

@@ -43,4 +43,4 @@ buildPythonPackage rec {
license = licenses.mit;
maintainers = with maintainers; [ rakesh4g ];
};
}
}

View File

@@ -46,4 +46,4 @@ buildPythonPackage rec {
license = licenses.mit;
maintainers = with maintainers; [ rakesh4g ];
};
}
}

View File

@@ -16,7 +16,7 @@ buildPythonPackage rec {
};
checkInputs = [ nose ];
propagatedBuildInputs = [ numpy six ];
meta = with lib; {

View File

@@ -11,7 +11,7 @@ buildPythonPackage {
pname = "pyphotonfile";
inherit version;
propagatedBuildInputs = [ pillow numpy ];
src = fetchFromGitHub {
owner = "fookatchu";
repo = "pyphotonfile";

View File

@@ -6,7 +6,7 @@
, brotli
, ijson
, nose
, requests_oauthlib
, requests_oauthlib
, python_magic
, pytz
}:
@@ -14,7 +14,7 @@
buildPythonPackage rec {
pname = "pysnow";
version = "0.7.16";
src = fetchPypi {
inherit pname version;
sha256 = "5df61091470e48b5b3a6ea75637f69d3aacae20041487ea457a9a0e3093fba8c";
@@ -22,9 +22,9 @@ buildPythonPackage rec {
propagatedBuildInputs = [
brotli
ijson
python_magic
pytz
ijson
python_magic
pytz
requests_oauthlib
];
@@ -38,8 +38,7 @@ buildPythonPackage rec {
description = "ServiceNow HTTP client library written in Python";
homepage = "https://github.com/rbw/pysnow";
license = licenses.mit;
maintainers = [ maintainers.almac ];
maintainers = [ maintainers.almac ];
};
}

View File

@@ -29,7 +29,7 @@ buildPythonPackage rec {
checkPhase = ''
pytest
'';
meta = with stdenv.lib; {
description = "BDD library for the py.test runner";
homepage = "https://github.com/pytest-dev/pytest-bdd";

View File

@@ -16,10 +16,10 @@ buildPythonPackage rec {
};
propagatedBuildInputs = [ sh ];
# Tests requires network connections
doCheck = false;
meta = with stdenv.lib; {
description = "An interface for packer.io";
homepage = "https://github.com/nir0s/python-packer";
@@ -27,4 +27,3 @@ buildPythonPackage rec {
maintainers = with maintainers; [ psyanticy ];
};
}

View File

@@ -22,7 +22,7 @@ buildPythonPackage rec {
sha256 = "12zhq4pnfcwbgcx7cs99c751gp3w0ysaf5ykv2lv8f4i360w3r5a";
};
propagatedBuildInputs = [
propagatedBuildInputs = [
future
pytorch
pyyaml

View File

@@ -25,7 +25,7 @@
preBuild = ''
export HOME=$TMPDIR
export PYTHONASYNCIODEBUG=1
'';
'';
# tests fail ATM.
doCheck = false;

View File

@@ -23,9 +23,9 @@ buildPythonPackage rec {
license = licenses.bsd3;
maintainers = with maintainers; [ scalavision ];
longDescription = ''
The intent of this module is to mimic the csv module in the Python stdlib,
as opposed to more flexible serialization formats like JSON or YAML.
vcf will attempt to parse the content of each record based on the data
The intent of this module is to mimic the csv module in the Python stdlib,
as opposed to more flexible serialization formats like JSON or YAML.
vcf will attempt to parse the content of each record based on the data
types specified in the meta-information lines
'';
};

View File

@@ -39,7 +39,7 @@ buildPythonPackage rec {
# Wants `wbemcli` in PATH
rm testsuite/test_wbemcli.py
# Disables tests that use testfixtures which is currently broken by nonbuilding zope_component
rm testsuite/{test_logging,test_recorder,test_wbemconnection_mock}.*
'';

View File

@@ -16,8 +16,8 @@ buildPythonPackage rec {
# error: invalid command 'test'
doCheck = false;
patches = [
# see: https://gitlab.freedesktop.org/xdg/pyxdg/-/merge_requests/5
patches = [
# see: https://gitlab.freedesktop.org/xdg/pyxdg/-/merge_requests/5
(fetchpatch {
url = "https://gitlab.freedesktop.org/xdg/pyxdg/-/commit/78405aaa34463db2c6f33ca28ae2293dd3bb1e91.patch";
sha256 = "17cjax546rkqv5kvwczjqjdd6vmlvcxjanz0296dlfq23j2wbx63";

View File

@@ -8,6 +8,6 @@ incl=$(echo $python/include/python2.*)
sed -i -e "s@/usr/include/\$(PYTHON)@$incl@" \
-e "s@PYTHONLIBDIR = /usr/\$(LIBDIR)/\$(PYTHON)/site-packages@PYTHONLIBDIR = $(toPythonPath $out)@" Makefile.inc
sed -i -e "s@/usr/bin/install@install@g" \
-e "s@\$(DESTDIR)/usr/share/locale@$out/share/locale@" po/Makefile
-e "s@\$(DESTDIR)/usr/share/locale@$out/share/locale@" po/Makefile
make PREFIX=$out
make PREFIX=$out install

View File

@@ -3,20 +3,20 @@
buildPythonPackage rec {
pname = "Sanic-Auth";
version = "0.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "b7cb9e93296c035ada0aa1ebfb33f9f7b62f7774c519e374b7fe703ff73589cb";
};
propagatedBuildInputs = [ sanic ];
checkInputs = [ pytest ];
checkPhase = ''
pytest tests
'';
meta = with lib; {
description = "Simple Authentication for Sanic";
homepage = "https://github.com/pyx/sanic-auth/";

View File

@@ -1,8 +1,8 @@
{ stdenv, git, setuptools, setuptools_scm, fetchFromGitHub, requests, boto3, buildPythonPackage, responses }:
{ stdenv, git, setuptools, setuptools_scm, fetchFromGitHub, requests, boto3, buildPythonPackage, responses }:
buildPythonPackage rec {
pname = "sapi-python-client";
version = "0.1.3";
buildPythonPackage rec {
pname = "sapi-python-client";
version = "0.1.3";
src = fetchFromGitHub {
owner = "keboola";
@@ -17,15 +17,14 @@ buildPythonPackage rec {
doCheck = false; # requires API token and an active keboola bucket
nativeBuildInputs = [ git setuptools_scm ];
nativeBuildInputs = [ git setuptools_scm ];
propagatedBuildInputs = [ setuptools requests boto3 responses ];
propagatedBuildInputs = [ setuptools requests boto3 responses ];
meta = with stdenv.lib; {
description = "Keboola Connection Storage API client";
homepage = "https://github.com/keboola/sapi-python-client";
meta = with stdenv.lib; {
description = "Keboola Connection Storage API client";
homepage = "https://github.com/keboola/sapi-python-client";
maintainers = with maintainers; [ mrmebelman ];
license = licenses.mit;
};
license = licenses.mit;
};
}

View File

@@ -1,4 +1,4 @@
{ stdenv, buildPythonPackage, fetchPypi, requests }:
{ stdenv, buildPythonPackage, fetchPypi, requests, six, mock }:
buildPythonPackage rec {
pname = "spotipy";
@@ -9,7 +9,15 @@ buildPythonPackage rec {
sha256 = "d1a85b8831ed60d2290ab9bbba289c548fb9680889757252c02dab2f2327d865";
};
propagatedBuildInputs = [ requests ];
propagatedBuildInputs = [ requests six ];
checkInputs = [ mock ];
preConfigure = ''
substituteInPlace setup.py \
--replace "mock==2.0.0" "mock"
'';
pythonImportsCheck = [ "spotipy" ];
meta = with stdenv.lib; {
homepage = "https://spotipy.readthedocs.org/";

View File

@@ -1,4 +1,4 @@
{
{
lib
, buildPythonPackage
, fetchFromGitHub
@@ -6,7 +6,7 @@
, ipykernel
, wurlitzer
, jupyter_client
, pyzmq
, pyzmq
, numpy
, pandas
, scipy

View File

@@ -16,7 +16,7 @@ buildPythonPackage rec {
};
propagatedBuildInputs = [
jedi pycodestyle psutil pyflakes rope pylint keyring numpydoc
jedi pycodestyle psutil pyflakes rope pylint keyring numpydoc
qtconsole qtawesome nbconvert mccabe pyopengl cloudpickle spyder-kernels_0_5
pygments qtpy pyzmq chardet pyqtwebengine
];

View File

@@ -3,20 +3,20 @@
buildPythonPackage rec {
pname = "sqlitedict";
version = "1.6.0";
src = fetchFromGitHub {
owner = "RaRe-Technologies";
repo = "sqlitedict";
rev = version;
sha256 = "1yq94lgpny9qcfbsl39npjvrsjfggi3lj2kpzcsxcfdfgxag6m2m";
};
checkInputs = [ pytest ];
checkPhase = ''
pytest tests
'';
meta = with lib; {
description = "Persistent, thread-safe dict";
homepage = "https://github.com/RaRe-Technologies/sqlitedict";

View File

@@ -36,4 +36,4 @@ buildPythonPackage rec {
description = "Python module to work with various SUSE services";
license = lib.licenses.gpl3Plus;
};
}
}

View File

@@ -33,7 +33,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "A lightweight document oriented database written in pure Python with no external dependencies";
homepage = "https://github.com/msiemens/tinydb";
license = licenses.asl20;
license = licenses.asl20;
maintainers = with maintainers; [ marcus7070 ];
};
}

View File

@@ -1,34 +1,56 @@
{ lib, fetchPypi, buildPythonPackage, isPy3k, python, pytest
, typing-extensions
, protobuf
, hidapi
, ecdsa
, mnemonic
, requests
, pyblake2
{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, installShellFiles
, attrs
, click
, construct
, ecdsa
, hidapi
, libusb1
, mnemonic
, pillow
, protobuf
, pyblake2
, requests
, rlp
, shamir-mnemonic
, typing-extensions
, trezor-udev-rules
, installShellFiles
, pytest
}:
buildPythonPackage rec {
pname = "trezor";
version = "0.12.1";
version = "0.12.2";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "1w19m9lws55k9sjhras47hpfpqwq1jm5vy135nj65yhkblygqg19";
sha256 = "0r0j0y0ii62ppawc8qqjyaq0fkmmb0zk1xb3f9navxp556w2dljv";
};
nativeBuildInputs = [ installShellFiles ];
propagatedBuildInputs = [ typing-extensions protobuf hidapi ecdsa mnemonic requests pyblake2 click construct libusb1 rlp shamir-mnemonic trezor-udev-rules ];
propagatedBuildInputs = [
attrs
click
construct
ecdsa
hidapi
libusb1
mnemonic
pillow
protobuf
pyblake2
requests
rlp
shamir-mnemonic
typing-extensions
trezor-udev-rules
];
checkInputs = [
pytest
@@ -52,7 +74,7 @@ buildPythonPackage rec {
'';
meta = with lib; {
description = "Python library for communicating with TREZOR Bitcoin Hardware Wallet";
description = "Python library for communicating with Trezor Hardware Wallet";
homepage = "https://github.com/trezor/trezor-firmware/tree/master/python";
license = licenses.gpl3;
maintainers = with maintainers; [ np prusnak mmahut _1000101 ];

View File

@@ -3,7 +3,7 @@
buildPythonPackage rec {
pname = "untangle";
version = "1.1.1";
src = fetchFromGitHub {
owner = "stchris";
repo = "untangle";
@@ -11,11 +11,11 @@ buildPythonPackage rec {
rev = "61b57cd771a40df7d1621e9ec3c68d9acd733d31";
sha256 = "0ffvlfyyl82xi4akz1lls32lrnlrn44ik41v8x8xh9ghy0n0ick7";
};
checkPhase = ''
${python.interpreter} -m unittest discover -s tests
'';
meta = with lib; {
description = "Convert XML documents into Python objects";
homepage = "https://github.com/stchris/untangle";

View File

@@ -22,4 +22,4 @@ buildPythonPackage rec {
license = licenses.mit;
maintainers = with maintainers; [ rakesh4g ];
};
}
}

View File

@@ -3,21 +3,21 @@
buildPythonPackage rec {
pname = "vertica-python";
version = "0.11.0";
src = fetchPypi {
inherit pname version;
sha256 = "cceb39d081b8d1628956205642e740a9fabcfd2c6ecd982c51134fba8215d0bd";
};
propagatedBuildInputs = [ future dateutil six ];
checkInputs = [ pytest mock parameterized ];
# Integration tests require an accessible Vertica db
checkPhase = ''
pytest --ignore vertica_python/tests/integration_tests
'';
meta = with lib; {
description = "Native Python client for Vertica database";
homepage = "https://github.com/vertica/vertica-python";

View File

@@ -1,30 +1,25 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, pytest
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "wasabi";
version = "0.7.1";
version = "0.8.0";
src = fetchPypi {
inherit pname version;
sha256 = "ee3809f4ce00e1e7f424b1572c753cff0dcaca2ca684e67e31f985033a9f070b";
sha256 = "75fec6db6193c8615d7f398ae4aa2c4ad294e6e3e81c6a6dbbbd3864ee2223c3";
};
checkInputs = [
pytest
];
checkPhase = ''
pytest wasabi/tests
'';
checkInputs = [ pytestCheckHook ];
meta = with stdenv.lib; {
description = "A lightweight console printing and formatting toolkit";
homepage = "https://github.com/ines/wasabi";
changelog = "https://github.com/ines/wasabi/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ danieldk ];
};
};
}

View File

@@ -35,4 +35,4 @@ buildPythonPackage rec {
homepage = "https://github.com/jaraco/zipp";
license = licenses.mit;
};
}
}

View File

@@ -8,16 +8,16 @@
buildPythonPackage rec {
pname = "zstandard";
version = "0.14.0";
src = fetchPypi {
inherit pname version;
sha256 = "0lkn7n3bfp7zip6hkqwkqwc8pxmhhs4rr699k77h51rfln6kjllh";
};
propagatedBuildInputs = [ cffi ];
checkInputs = [ hypothesis ];
meta = with lib; {
description = "zstandard bindings for Python";
homepage = "https://github.com/indygreg/python-zstandard";