python: editorconfig fixes

This commit is contained in:
zowoq
2020-08-27 12:51:02 -07:00
committed by Jon
parent 1c2ebdc5a3
commit 0cff30bb44
87 changed files with 149 additions and 157 deletions
@@ -9,7 +9,7 @@ buildPythonPackage rec {
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "0ljfpl8x069arzginvpi1v6hlaq4x2qpjqj01qds2ylz33scq8r4"; sha256 = "0ljfpl8x069arzginvpi1v6hlaq4x2qpjqj01qds2ylz33scq8r4";
}; };
checkInputs = [ pytest ]; checkInputs = [ pytest ];
@@ -21,4 +21,3 @@ buildPythonPackage rec {
}; };
} }
@@ -15,7 +15,7 @@ buildPythonPackage rec {
rev = "v${version}"; rev = "v${version}";
sha256 = "1inak3y2win58zbzykfzy6xp00f276sqsz69h2nfsd93mpr74wf6"; sha256 = "1inak3y2win58zbzykfzy6xp00f276sqsz69h2nfsd93mpr74wf6";
}; };
nativeBuildInputs = [ poetry ]; nativeBuildInputs = [ poetry ];
preBuild = '' preBuild = ''
@@ -17,16 +17,16 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "atlassian-python-api"; pname = "atlassian-python-api";
version = "1.16.0"; version = "1.16.0";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "1sp036192vdl5nqifcswg2j838vf8i9k8bfd0w4qh1vz4f0pjz7y"; sha256 = "1sp036192vdl5nqifcswg2j838vf8i9k8bfd0w4qh1vz4f0pjz7y";
}; };
checkInputs = [ pytestrunner pytest ]; checkInputs = [ pytestrunner pytest ];
propagatedBuildInputs = [ oauthlib requests requests_oauthlib six ]; propagatedBuildInputs = [ oauthlib requests requests_oauthlib six ];
meta = with lib; { meta = with lib; {
description = "Python Atlassian REST API Wrapper"; description = "Python Atlassian REST API Wrapper";
homepage = "https://github.com/atlassian-api/atlassian-python-api"; homepage = "https://github.com/atlassian-api/atlassian-python-api";
@@ -34,4 +34,3 @@ buildPythonPackage rec {
maintainers = [ maintainers.arnoldfarkas ]; maintainers = [ maintainers.arnoldfarkas ];
}; };
} }
@@ -25,4 +25,4 @@ buildPythonPackage rec {
homepage = "http://audiotools.sourceforge.net/"; homepage = "http://audiotools.sourceforge.net/";
license = lib.licenses.gpl2Plus; license = lib.licenses.gpl2Plus;
}; };
} }
@@ -25,7 +25,7 @@ buildPythonPackage rec {
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "0cc3i4wznqb7lk8n6jkprvkpsby6r7khkxqwn75k8f01mxgjfpvf"; sha256 = "0cc3i4wznqb7lk8n6jkprvkpsby6r7khkxqwn75k8f01mxgjfpvf";
}; };
patches = [ patches = [
@@ -22,7 +22,7 @@ buildPythonPackage rec {
scikitlearn scikitlearn
scipy scipy
]; ];
checkInputs = [ pytest ]; checkInputs = [ pytest ];
checkPhase = '' checkPhase = ''
pytest tests pytest tests
@@ -15,7 +15,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [ ]; propagatedBuildInputs = [ ];
# upstream doesn't contain tests # upstream doesn't contain tests
doCheck = false; doCheck = false;
pythonImportsCheck = [ "bespon" ]; pythonImportsCheck = [ "bespon" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Encodes and decodes data in the BespON format."; description = "Encodes and decodes data in the BespON format.";
@@ -33,4 +33,4 @@ buildPythonPackage rec {
homepage = "https://github.com/python-hyper/brotlipy/"; homepage = "https://github.com/python-hyper/brotlipy/";
license = lib.licenses.mit; license = lib.licenses.mit;
}; };
} }
@@ -43,4 +43,4 @@ buildPythonPackage rec {
description = "A simple, correct PEP517 package builder"; description = "A simple, correct PEP517 package builder";
license = lib.licenses.mit; license = lib.licenses.mit;
}; };
} }
@@ -14,7 +14,7 @@ buildPythonPackage rec {
}; };
propagatedBuildInputs = [ pyopenssl ]; propagatedBuildInputs = [ pyopenssl ];
doCheck = false; #no tests were included doCheck = false; #no tests were included
meta = with stdenv.lib; { meta = with stdenv.lib; {
@@ -28,4 +28,4 @@ buildPythonPackage rec {
description = "Time-handling functionality from netcdf4-python"; description = "Time-handling functionality from netcdf4-python";
}; };
} }
@@ -34,7 +34,7 @@ buildPythonPackage rec {
# pytest # pytest
# pytest-asyncio # pytest-asyncio
# ]; # ];
# #
# # Fails with : ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 6379) # # Fails with : ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 6379)
# # (even with a local redis instance running) # # (even with a local redis instance running)
# checkPhase = '' # checkPhase = ''
@@ -23,4 +23,4 @@ buildPythonPackage rec {
license = licenses.mit; license = licenses.mit;
homepage = "https://github.com/jaraco/configparser"; homepage = "https://github.com/jaraco/configparser";
}; };
} }
@@ -19,7 +19,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [ propagatedBuildInputs = [
jinja2 future binaryornot click whichcraft poyo jinja2_time requests python-slugify jinja2 future binaryornot click whichcraft poyo jinja2_time requests python-slugify
]; ];
# requires network access for cloning git repos # requires network access for cloning git repos
doCheck = false; doCheck = false;
checkPhase = '' checkPhase = ''
@@ -24,4 +24,4 @@ buildPythonPackage rec {
homepage = "https://github.com/nucleic/cppy"; homepage = "https://github.com/nucleic/cppy";
license = lib.licenses.bsd3; license = lib.licenses.bsd3;
}; };
} }
@@ -20,7 +20,7 @@ buildPythonPackage rec {
preConfigure = '' preConfigure = ''
export CUDA_PATH=${cudatoolkit} export CUDA_PATH=${cudatoolkit}
''; '';
propagatedBuildInputs = [ propagatedBuildInputs = [
cudatoolkit cudatoolkit
@@ -1,7 +1,7 @@
{ stdenv { stdenv
, buildPythonPackage , buildPythonPackage
, fetchPypi, isPy27 , fetchPypi, isPy27
, ldap , django , ldap , django
, mock , mock
}: }:
@@ -14,8 +14,8 @@ buildPythonPackage rec {
sha256 = "11af1773b08613339d2c3a0cec1308a4d563518f17b1719c3759994d0b4d04bf"; sha256 = "11af1773b08613339d2c3a0cec1308a4d563518f17b1719c3759994d0b4d04bf";
}; };
propagatedBuildInputs = [ ldap django ]; propagatedBuildInputs = [ ldap django ];
checkInputs = [ mock ]; 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 # 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; doCheck = false;
@@ -11,7 +11,7 @@ buildPythonPackage rec {
sha256 = "2310291c7f40606be045938d65e117383549aa8a979c6c4b700464c6a6204a34"; 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 # 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; doCheck = false;
@@ -23,4 +23,4 @@ buildPythonPackage rec {
homepage = "https://github.com/goinnn/django-multiselectfield"; homepage = "https://github.com/goinnn/django-multiselectfield";
license = lib.licenses.lgpl3; license = lib.licenses.lgpl3;
}; };
} }
@@ -3,17 +3,17 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "djangorestframework_simplejwt"; pname = "djangorestframework_simplejwt";
version = "4.4.0"; version = "4.4.0";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "c315be70aa12a5f5790c0ab9acd426c3a58eebea65a77d0893248c5144a5080c"; sha256 = "c315be70aa12a5f5790c0ab9acd426c3a58eebea65a77d0893248c5144a5080c";
}; };
propagatedBuildInputs = [ django djangorestframework pyjwt ]; propagatedBuildInputs = [ django djangorestframework pyjwt ];
# Test raises django.core.exceptions.ImproperlyConfigured # Test raises django.core.exceptions.ImproperlyConfigured
doCheck = false; doCheck = false;
meta = with lib; { meta = with lib; {
description = "A minimal JSON Web Token authentication plugin for Django REST Framework"; description = "A minimal JSON Web Token authentication plugin for Django REST Framework";
homepage = "https://github.com/davesque/django-rest-framework-simplejwt"; homepage = "https://github.com/davesque/django-rest-framework-simplejwt";
@@ -27,4 +27,4 @@ buildPythonPackage rec {
homepage = "https://pypi.python.org/pypi/fixtures"; homepage = "https://pypi.python.org/pypi/fixtures";
license = lib.licenses.asl20; license = lib.licenses.asl20;
}; };
} }
@@ -10,7 +10,7 @@ buildPythonPackage rec {
homepage = "https://github.com/marshmallow-code/flask-marshmallow"; homepage = "https://github.com/marshmallow-code/flask-marshmallow";
description = "Flask + marshmallow for beautiful APIs"; description = "Flask + marshmallow for beautiful APIs";
license = lib.licenses.mit; license = lib.licenses.mit;
}; };
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
@@ -10,7 +10,7 @@ buildPythonPackage rec {
}; };
propagatedBuildInputs = [ msgpack ]; propagatedBuildInputs = [ msgpack ];
# Tests fail because absent in package # Tests fail because absent in package
doCheck = false; doCheck = false;
@@ -11,7 +11,7 @@ buildPythonPackage rec {
buildInputs = [ fuse ]; buildInputs = [ fuse ];
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig ];
# no tests in the Pypi archive # no tests in the Pypi archive
doCheck = false; doCheck = false;
@@ -22,4 +22,3 @@ buildPythonPackage rec {
maintainers = with maintainers; [ psyanticy ]; maintainers = with maintainers; [ psyanticy ];
}; };
} }
@@ -23,11 +23,11 @@ buildPythonPackage rec {
# No tests in archive # No tests in archive
doCheck = false; doCheck = false;
checkInputs = [ flake8 nose2 mock ]; checkInputs = [ flake8 nose2 mock ];
propagatedBuildInputs = [ requests pyjwt ]; propagatedBuildInputs = [ requests pyjwt ];
meta = with lib; { meta = with lib; {
description = "A convenient Pythonic interface to Globus REST APIs, including the Transfer API and the Globus Auth API."; 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"; homepage = "https://github.com/globus/globus-sdk-python";
@@ -30,9 +30,9 @@ buildPythonPackage rec {
}) })
]; ];
# Fontconfig error: Cannot load default config file # Fontconfig error: Cannot load default config file
FONTCONFIG_FILE = makeFontsConf { FONTCONFIG_FILE = makeFontsConf {
fontDirectories = [ freefont_ttf ]; fontDirectories = [ freefont_ttf ];
}; };
checkInputs = [ mock pytest pytest-mock pytestcov ]; checkInputs = [ mock pytest pytest-mock pytestcov ];
@@ -35,4 +35,4 @@ buildPythonPackage rec {
license = lib.licenses.bsd3; license = lib.licenses.bsd3;
}; };
} }
@@ -27,4 +27,4 @@ buildPythonPackage rec {
license = lib.licenses.mit; license = lib.licenses.mit;
}; };
} }
@@ -17,4 +17,4 @@ buildPythonPackage rec {
description = "Internationalized Domain Names in Applications (IDNA)"; description = "Internationalized Domain Names in Applications (IDNA)";
license = lib.licenses.bsd3; license = lib.licenses.bsd3;
}; };
} }
@@ -19,7 +19,7 @@ buildPythonPackage rec {
substituteInPlace setup.py \ substituteInPlace setup.py \
--replace "'opencv-python >= 3.4.5'," "" --replace "'opencv-python >= 3.4.5'," ""
''; '';
propagatedBuildInputs = [ propagatedBuildInputs = [
numpy numpy
scikitimage scikitimage
@@ -42,9 +42,9 @@ buildPythonPackage rec {
"test_subprocess_print" "test_subprocess_print"
"test_subprocess_error" "test_subprocess_error"
"test_ipython_start_kernel_no_userns" "test_ipython_start_kernel_no_userns"
# https://github.com/ipython/ipykernel/issues/506 # https://github.com/ipython/ipykernel/issues/506
"test_unc_paths" "test_unc_paths"
] ++ lib.optionals (pythonOlder "3.8") [ ] ++ lib.optionals (pythonOlder "3.8") [
# flaky test https://github.com/ipython/ipykernel/issues/485 # flaky test https://github.com/ipython/ipykernel/issues/485
"test_shutdown" "test_shutdown"
@@ -25,4 +25,4 @@ buildPythonPackage rec {
license = lib.licenses.bsd2; license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ lihop ]; maintainers = with lib.maintainers; [ lihop ];
}; };
} }
@@ -27,6 +27,6 @@ buildPythonPackage rec {
description = "Jupyter Sphinx Extensions"; description = "Jupyter Sphinx Extensions";
homepage = "https://github.com/jupyter/jupyter-sphinx/"; homepage = "https://github.com/jupyter/jupyter-sphinx/";
license = licenses.bsd3; license = licenses.bsd3;
}; };
} }
@@ -16,7 +16,7 @@ buildPythonPackage rec {
# No tests implemented # No tests implemented
doCheck = false; doCheck = false;
propagatedBuildInputs = [ jupyterhub ldap3 ]; propagatedBuildInputs = [ jupyterhub ldap3 ];
meta = with lib; { meta = with lib; {
@@ -14,9 +14,9 @@ buildPythonPackage rec {
inherit pname version; inherit pname version;
sha256 = "247800260cd38160c362d211dcaf4ed0f7816afb5efe56544748b21d6ad6d17f"; sha256 = "247800260cd38160c362d211dcaf4ed0f7816afb5efe56544748b21d6ad6d17f";
}; };
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-I${libcxx}/include/c++/v1"; NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-I${libcxx}/include/c++/v1";
nativeBuildInputs = [ nativeBuildInputs = [
cppy cppy
]; ];
@@ -20,7 +20,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [ jinja2 requests pillow rasterio shapely ]; propagatedBuildInputs = [ jinja2 requests pillow rasterio shapely ];
# Test cases are not running on pypi or GitHub # Test cases are not running on pypi or GitHub
doCheck = false; doCheck = false;
meta = with lib; { meta = with lib; {
homepage = "https://github.com/Labelbox/Labelbox"; homepage = "https://github.com/Labelbox/Labelbox";
@@ -18,4 +18,4 @@ buildPythonPackage rec {
license = lib.licenses.bsd2; license = lib.licenses.bsd2;
homepage = "https://github.com/stefanholek/lazy"; homepage = "https://github.com/stefanholek/lazy";
}; };
} }
@@ -28,4 +28,4 @@ buildPythonPackage rec {
license = lib.licenses.bsd3; license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ jwiegley ]; maintainers = with lib.maintainers; [ jwiegley ];
}; };
} }
@@ -3,7 +3,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "loguru"; pname = "loguru";
version = "0.5.1"; version = "0.5.1";
disabled = isPy27; disabled = isPy27;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
@@ -21,8 +21,8 @@ buildPythonPackage rec {
sha256 = "041cd779ae383fb5c56f2bb44824f4e80ba895febd9a3f21570ac274221c82e0"; sha256 = "041cd779ae383fb5c56f2bb44824f4e80ba895febd9a3f21570ac274221c82e0";
}; };
propagatedBuildInputs = [ mozprofile mozversion browsermob-proxy moztest propagatedBuildInputs = [ mozprofile mozversion browsermob-proxy moztest
wptserve manifestparser marionette_driver ]; wptserve manifestparser marionette_driver ];
meta = { meta = {
description = "Mozilla Marionette protocol test automation harness"; description = "Mozilla Marionette protocol test automation harness";
@@ -16,7 +16,7 @@ buildPythonPackage rec {
sha256 = "99ca2513d4e2ca29a08e550346f23947a50627a2b02f6ad36a4550e779fa0ce8"; sha256 = "99ca2513d4e2ca29a08e550346f23947a50627a2b02f6ad36a4550e779fa0ce8";
}; };
propagatedBuildInputs = [ mozversion mozrunner ]; propagatedBuildInputs = [ mozversion mozrunner ];
meta = { meta = {
description = "Mozilla Marionette driver"; description = "Mozilla Marionette driver";
@@ -13,7 +13,7 @@ buildPythonPackage rec {
sha256 = "10y1cr933ajx9ni701ayb7r361pak9wrzr7pdpyx81kkbjddq7qa"; sha256 = "10y1cr933ajx9ni701ayb7r361pak9wrzr7pdpyx81kkbjddq7qa";
}; };
propagatedBuildInputs = [ moznetwork ]; propagatedBuildInputs = [ moznetwork ];
meta = { meta = {
description = "Webserver for Mozilla testing"; description = "Webserver for Mozilla testing";
@@ -14,7 +14,7 @@ buildPythonPackage rec {
sha256 = "0ws20l4ggb6mj7ycwrk5h7hj1jmj3mj0ca48k5jzsa4n042ahwrd"; sha256 = "0ws20l4ggb6mj7ycwrk5h7hj1jmj3mj0ca48k5jzsa4n042ahwrd";
}; };
propagatedBuildInputs = [ mozlog mozinfo ]; propagatedBuildInputs = [ mozlog mozinfo ];
meta = { meta = {
description = "Network utilities for Mozilla testing"; description = "Network utilities for Mozilla testing";
@@ -18,8 +18,8 @@ buildPythonPackage rec {
sha256 = "2e50876bcdd74517e7b71f3e7a76102050edec255b3983403f1a63e7c8a41e7a"; sha256 = "2e50876bcdd74517e7b71f3e7a76102050edec255b3983403f1a63e7c8a41e7a";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
setuptools setuptools
] ++ lib.optionals (pythonOlder "3.8") [ ] ++ lib.optionals (pythonOlder "3.8") [
importlib-metadata importlib-metadata
]; ];
@@ -18,8 +18,8 @@ buildPythonPackage rec {
sha256 = "1fafe3f1ecabfb514a5285fca634a53c1b32a81cb0feb154264d55bf2ff22c17"; sha256 = "1fafe3f1ecabfb514a5285fca634a53c1b32a81cb0feb154264d55bf2ff22c17";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
setuptools setuptools
] ++ lib.optionals (pythonOlder "3.8") [ ] ++ lib.optionals (pythonOlder "3.8") [
importlib-metadata importlib-metadata
]; ];
@@ -31,4 +31,4 @@ buildPythonPackage rec {
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ drewrisinger ]; maintainers = with maintainers; [ drewrisinger ];
}; };
} }
@@ -18,7 +18,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "mask-rcnn"; pname = "mask-rcnn";
version = "2.1"; version = "2.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "matterport"; owner = "matterport";
repo = "Mask_RCNN"; repo = "Mask_RCNN";
@@ -49,4 +49,3 @@ buildPythonPackage rec {
maintainers = with maintainers; [ rakesh4g ]; maintainers = with maintainers; [ rakesh4g ];
}; };
} }
+1 -1
View File
@@ -41,4 +41,4 @@ buildPythonPackage rec {
license = licenses.bsd2; license = licenses.bsd2;
}; };
} }
@@ -21,4 +21,4 @@ buildPythonPackage rec {
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ rakesh4g ]; maintainers = with maintainers; [ rakesh4g ];
}; };
} }
@@ -19,7 +19,7 @@ buildPythonPackage rec {
# package has no tests # package has no tests
doCheck = false; doCheck = false;
propagatedBuildInputs = [ six pyjwt requests oauthlib requests_oauthlib ]; propagatedBuildInputs = [ six pyjwt requests oauthlib requests_oauthlib ];
meta = with lib; { meta = with lib; {
@@ -80,14 +80,14 @@ buildPythonPackage rec {
cp ${opensslLegacyStatic.out}/lib/libssl.a \ cp ${opensslLegacyStatic.out}/lib/libssl.a \
${opensslLegacyStatic.out}/lib/libcrypto.a \ ${opensslLegacyStatic.out}/lib/libcrypto.a \
deps/openssl-OpenSSL_1_0_2e/ 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 ln -s ${opensslLegacyStatic.bin}/bin deps/openssl-OpenSSL_1_0_2e/apps
mkdir -p deps/openssl-OpenSSL_1_1_1/ mkdir -p deps/openssl-OpenSSL_1_1_1/
cp ${opensslStatic.out}/lib/libssl.a \ cp ${opensslStatic.out}/lib/libssl.a \
${opensslStatic.out}/lib/libcrypto.a \ ${opensslStatic.out}/lib/libcrypto.a \
deps/openssl-OpenSSL_1_1_1/ 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 ln -s ${opensslStatic.bin}/bin deps/openssl-OpenSSL_1_1_1/apps
mkdir -p deps/zlib-1.2.11/ mkdir -p deps/zlib-1.2.11/
@@ -3,22 +3,22 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "nbconflux"; pname = "nbconflux";
version = "0.7.0"; version = "0.7.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Valassis-Digital-Media"; owner = "Valassis-Digital-Media";
repo = "nbconflux"; repo = "nbconflux";
rev = version; rev = version;
sha256 = "1708qkb275d6f7b4b5zmqx3i0jh56nrx2n9rwwp5nbaah5p2wwlh"; sha256 = "1708qkb275d6f7b4b5zmqx3i0jh56nrx2n9rwwp5nbaah5p2wwlh";
}; };
propagatedBuildInputs = [ nbconvert requests ]; propagatedBuildInputs = [ nbconvert requests ];
checkInputs = [ pytest responses ]; checkInputs = [ pytest responses ];
checkPhase = '' checkPhase = ''
pytest tests pytest tests
''; '';
meta = with lib; { meta = with lib; {
description = "Converts Jupyter Notebooks to Atlassian Confluence (R) pages using nbconvert"; description = "Converts Jupyter Notebooks to Atlassian Confluence (R) pages using nbconvert";
homepage = "https://github.com/Valassis-Digital-Media/nbconflux"; homepage = "https://github.com/Valassis-Digital-Media/nbconflux";
@@ -18,7 +18,7 @@ buildPythonPackage rec {
# Tests require Xorg and Dbus instance # Tests require Xorg and Dbus instance
doCheck = false; doCheck = false;
propagatedBuildInputs = [ pygobject3 propagatedBuildInputs = [ pygobject3
dbus-python ]; dbus-python ];
meta = { meta = {
description = "Pure Python interface to DBus notifications"; description = "Pure Python interface to DBus notifications";
@@ -29,10 +29,10 @@ buildPythonPackage rec {
# No tests in archive # No tests in archive
doCheck = false; doCheck = false;
checkInputs = [ globus-sdk mwoauth codecov flake8 pytest checkInputs = [ globus-sdk mwoauth codecov flake8 pytest
pytestcov pytest-tornado requests-mock pyjwt ]; pytestcov pytest-tornado requests-mock pyjwt ];
propagatedBuildInputs = [ jupyterhub ]; propagatedBuildInputs = [ jupyterhub ];
disabled = pythonOlder "3.4"; disabled = pythonOlder "3.4";
@@ -20,7 +20,7 @@ buildPythonPackage rec {
propagatedBuildInputs = lib.optional isPy27 futures; propagatedBuildInputs = lib.optional isPy27 futures;
checkInputs = [ gevent mock pytest tornado ]; checkInputs = [ gevent mock pytest tornado ];
checkPhase = '' checkPhase = ''
pytest pytest
''; '';
@@ -10,9 +10,9 @@ buildPythonPackage rec {
}; };
checkInputs = [ pytest ]; checkInputs = [ pytest ];
checkPhase = '' checkPhase = ''
pytest pytest
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {
@@ -22,4 +22,3 @@ buildPythonPackage rec {
maintainers = with maintainers; [ psyanticy ]; maintainers = with maintainers; [ psyanticy ];
}; };
} }
@@ -18,4 +18,4 @@ buildPythonPackage rec {
license = lib.licenses.mpl20; license = lib.licenses.mpl20;
maintainers = with lib.maintainers; [ copumpkin ]; maintainers = with lib.maintainers; [ copumpkin ];
}; };
} }
@@ -14,7 +14,7 @@ buildPythonPackage rec {
sha256 = "0k52qyxzdngdhyn4sya2qn1w1a4ll0mcla4h4gb1v91fk4lw25dm"; sha256 = "0k52qyxzdngdhyn4sya2qn1w1a4ll0mcla4h4gb1v91fk4lw25dm";
fetchSubmodules = true; fetchSubmodules = true;
}; };
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = "https://github.com/ned14/pcpp"; homepage = "https://github.com/ned14/pcpp";
description = "A C99 preprocessor written in pure Python"; description = "A C99 preprocessor written in pure Python";
@@ -49,4 +49,4 @@ buildPythonPackage rec {
license = lib.licenses.mit; license = lib.licenses.mit;
homepage = "https://github.com/pypa/pep517"; homepage = "https://github.com/pypa/pep517";
}; };
} }
@@ -22,7 +22,7 @@ buildPythonPackage rec {
checkInputs = [ checkInputs = [
networkx networkx
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
numpy numpy
cvxopt cvxopt
@@ -31,7 +31,7 @@ buildPythonPackage rec {
checkPhase = '' checkPhase = ''
${python.interpreter} test.py ${python.interpreter} test.py
''; '';
meta = with lib; { meta = with lib; {
description = "A Python interface to conic optimization solvers"; description = "A Python interface to conic optimization solvers";
homepage = "https://gitlab.com/picos-api/picos"; homepage = "https://gitlab.com/picos-api/picos";
@@ -16,4 +16,4 @@ buildPythonPackage rec {
inherit pname version; inherit pname version;
sha256 = "1ps37vamqav6p277dlp51jnacd5q4x4z1x8y0nfjw3y8jsfy3f8n"; sha256 = "1ps37vamqav6p277dlp51jnacd5q4x4z1x8y0nfjw3y8jsfy3f8n";
}; };
} }
@@ -29,7 +29,7 @@ buildPythonPackage rec {
checkPhase = '' checkPhase = ''
${python.interpreter} setup.py test ${python.interpreter} setup.py test
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Cython hash tables that assume keys are pre-hashed"; description = "Cython hash tables that assume keys are pre-hashed";
homepage = "https://github.com/explosion/preshed"; homepage = "https://github.com/explosion/preshed";
@@ -43,4 +43,4 @@ buildPythonPackage rec {
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ rakesh4g ]; maintainers = with maintainers; [ rakesh4g ];
}; };
} }
@@ -46,4 +46,4 @@ buildPythonPackage rec {
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ rakesh4g ]; maintainers = with maintainers; [ rakesh4g ];
}; };
} }
@@ -16,7 +16,7 @@ buildPythonPackage rec {
}; };
checkInputs = [ nose ]; checkInputs = [ nose ];
propagatedBuildInputs = [ numpy six ]; propagatedBuildInputs = [ numpy six ];
meta = with lib; { meta = with lib; {
@@ -11,7 +11,7 @@ buildPythonPackage {
pname = "pyphotonfile"; pname = "pyphotonfile";
inherit version; inherit version;
propagatedBuildInputs = [ pillow numpy ]; propagatedBuildInputs = [ pillow numpy ];
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "fookatchu"; owner = "fookatchu";
repo = "pyphotonfile"; repo = "pyphotonfile";
@@ -6,7 +6,7 @@
, brotli , brotli
, ijson , ijson
, nose , nose
, requests_oauthlib , requests_oauthlib
, python_magic , python_magic
, pytz , pytz
}: }:
@@ -14,7 +14,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "pysnow"; pname = "pysnow";
version = "0.7.16"; version = "0.7.16";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "5df61091470e48b5b3a6ea75637f69d3aacae20041487ea457a9a0e3093fba8c"; sha256 = "5df61091470e48b5b3a6ea75637f69d3aacae20041487ea457a9a0e3093fba8c";
@@ -22,9 +22,9 @@ buildPythonPackage rec {
propagatedBuildInputs = [ propagatedBuildInputs = [
brotli brotli
ijson ijson
python_magic python_magic
pytz pytz
requests_oauthlib requests_oauthlib
]; ];
@@ -38,8 +38,7 @@ buildPythonPackage rec {
description = "ServiceNow HTTP client library written in Python"; description = "ServiceNow HTTP client library written in Python";
homepage = "https://github.com/rbw/pysnow"; homepage = "https://github.com/rbw/pysnow";
license = licenses.mit; license = licenses.mit;
maintainers = [ maintainers.almac ]; maintainers = [ maintainers.almac ];
}; };
} }
@@ -29,7 +29,7 @@ buildPythonPackage rec {
checkPhase = '' checkPhase = ''
pytest pytest
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "BDD library for the py.test runner"; description = "BDD library for the py.test runner";
homepage = "https://github.com/pytest-dev/pytest-bdd"; homepage = "https://github.com/pytest-dev/pytest-bdd";
@@ -16,10 +16,10 @@ buildPythonPackage rec {
}; };
propagatedBuildInputs = [ sh ]; propagatedBuildInputs = [ sh ];
# Tests requires network connections # Tests requires network connections
doCheck = false; doCheck = false;
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "An interface for packer.io"; description = "An interface for packer.io";
homepage = "https://github.com/nir0s/python-packer"; homepage = "https://github.com/nir0s/python-packer";
@@ -27,4 +27,3 @@ buildPythonPackage rec {
maintainers = with maintainers; [ psyanticy ]; maintainers = with maintainers; [ psyanticy ];
}; };
} }
@@ -22,7 +22,7 @@ buildPythonPackage rec {
sha256 = "12zhq4pnfcwbgcx7cs99c751gp3w0ysaf5ykv2lv8f4i360w3r5a"; sha256 = "12zhq4pnfcwbgcx7cs99c751gp3w0ysaf5ykv2lv8f4i360w3r5a";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
future future
pytorch pytorch
pyyaml pyyaml
@@ -25,7 +25,7 @@
preBuild = '' preBuild = ''
export HOME=$TMPDIR export HOME=$TMPDIR
export PYTHONASYNCIODEBUG=1 export PYTHONASYNCIODEBUG=1
''; '';
# tests fail ATM. # tests fail ATM.
doCheck = false; doCheck = false;
@@ -23,9 +23,9 @@ buildPythonPackage rec {
license = licenses.bsd3; license = licenses.bsd3;
maintainers = with maintainers; [ scalavision ]; maintainers = with maintainers; [ scalavision ];
longDescription = '' longDescription = ''
The intent of this module is to mimic the csv module in the Python stdlib, 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. 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 vcf will attempt to parse the content of each record based on the data
types specified in the meta-information lines types specified in the meta-information lines
''; '';
}; };
@@ -39,7 +39,7 @@ buildPythonPackage rec {
# Wants `wbemcli` in PATH # Wants `wbemcli` in PATH
rm testsuite/test_wbemcli.py rm testsuite/test_wbemcli.py
# Disables tests that use testfixtures which is currently broken by nonbuilding zope_component # Disables tests that use testfixtures which is currently broken by nonbuilding zope_component
rm testsuite/{test_logging,test_recorder,test_wbemconnection_mock}.* rm testsuite/{test_logging,test_recorder,test_wbemconnection_mock}.*
''; '';
@@ -16,8 +16,8 @@ buildPythonPackage rec {
# error: invalid command 'test' # error: invalid command 'test'
doCheck = false; doCheck = false;
patches = [ patches = [
# see: https://gitlab.freedesktop.org/xdg/pyxdg/-/merge_requests/5 # see: https://gitlab.freedesktop.org/xdg/pyxdg/-/merge_requests/5
(fetchpatch { (fetchpatch {
url = "https://gitlab.freedesktop.org/xdg/pyxdg/-/commit/78405aaa34463db2c6f33ca28ae2293dd3bb1e91.patch"; url = "https://gitlab.freedesktop.org/xdg/pyxdg/-/commit/78405aaa34463db2c6f33ca28ae2293dd3bb1e91.patch";
sha256 = "17cjax546rkqv5kvwczjqjdd6vmlvcxjanz0296dlfq23j2wbx63"; sha256 = "17cjax546rkqv5kvwczjqjdd6vmlvcxjanz0296dlfq23j2wbx63";
@@ -8,6 +8,6 @@ incl=$(echo $python/include/python2.*)
sed -i -e "s@/usr/include/\$(PYTHON)@$incl@" \ sed -i -e "s@/usr/include/\$(PYTHON)@$incl@" \
-e "s@PYTHONLIBDIR = /usr/\$(LIBDIR)/\$(PYTHON)/site-packages@PYTHONLIBDIR = $(toPythonPath $out)@" Makefile.inc -e "s@PYTHONLIBDIR = /usr/\$(LIBDIR)/\$(PYTHON)/site-packages@PYTHONLIBDIR = $(toPythonPath $out)@" Makefile.inc
sed -i -e "s@/usr/bin/install@install@g" \ 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
make PREFIX=$out install make PREFIX=$out install
@@ -3,20 +3,20 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "Sanic-Auth"; pname = "Sanic-Auth";
version = "0.2.0"; version = "0.2.0";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "b7cb9e93296c035ada0aa1ebfb33f9f7b62f7774c519e374b7fe703ff73589cb"; sha256 = "b7cb9e93296c035ada0aa1ebfb33f9f7b62f7774c519e374b7fe703ff73589cb";
}; };
propagatedBuildInputs = [ sanic ]; propagatedBuildInputs = [ sanic ];
checkInputs = [ pytest ]; checkInputs = [ pytest ];
checkPhase = '' checkPhase = ''
pytest tests pytest tests
''; '';
meta = with lib; { meta = with lib; {
description = "Simple Authentication for Sanic"; description = "Simple Authentication for Sanic";
homepage = "https://github.com/pyx/sanic-auth/"; homepage = "https://github.com/pyx/sanic-auth/";
@@ -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 { buildPythonPackage rec {
pname = "sapi-python-client"; pname = "sapi-python-client";
version = "0.1.3"; version = "0.1.3";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "keboola"; owner = "keboola";
@@ -17,15 +17,14 @@ buildPythonPackage rec {
doCheck = false; # requires API token and an active keboola bucket 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; { meta = with stdenv.lib; {
description = "Keboola Connection Storage API client"; description = "Keboola Connection Storage API client";
homepage = "https://github.com/keboola/sapi-python-client"; homepage = "https://github.com/keboola/sapi-python-client";
maintainers = with maintainers; [ mrmebelman ]; maintainers = with maintainers; [ mrmebelman ];
license = licenses.mit; license = licenses.mit;
}; };
} }
@@ -1,4 +1,4 @@
{ {
lib lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
@@ -6,7 +6,7 @@
, ipykernel , ipykernel
, wurlitzer , wurlitzer
, jupyter_client , jupyter_client
, pyzmq , pyzmq
, numpy , numpy
, pandas , pandas
, scipy , scipy
+1 -1
View File
@@ -16,7 +16,7 @@ buildPythonPackage rec {
}; };
propagatedBuildInputs = [ 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 qtconsole qtawesome nbconvert mccabe pyopengl cloudpickle spyder-kernels_0_5
pygments qtpy pyzmq chardet pyqtwebengine pygments qtpy pyzmq chardet pyqtwebengine
]; ];
@@ -3,20 +3,20 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "sqlitedict"; pname = "sqlitedict";
version = "1.6.0"; version = "1.6.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "RaRe-Technologies"; owner = "RaRe-Technologies";
repo = "sqlitedict"; repo = "sqlitedict";
rev = version; rev = version;
sha256 = "1yq94lgpny9qcfbsl39npjvrsjfggi3lj2kpzcsxcfdfgxag6m2m"; sha256 = "1yq94lgpny9qcfbsl39npjvrsjfggi3lj2kpzcsxcfdfgxag6m2m";
}; };
checkInputs = [ pytest ]; checkInputs = [ pytest ];
checkPhase = '' checkPhase = ''
pytest tests pytest tests
''; '';
meta = with lib; { meta = with lib; {
description = "Persistent, thread-safe dict"; description = "Persistent, thread-safe dict";
homepage = "https://github.com/RaRe-Technologies/sqlitedict"; homepage = "https://github.com/RaRe-Technologies/sqlitedict";
@@ -36,4 +36,4 @@ buildPythonPackage rec {
description = "Python module to work with various SUSE services"; description = "Python module to work with various SUSE services";
license = lib.licenses.gpl3Plus; license = lib.licenses.gpl3Plus;
}; };
} }
@@ -33,7 +33,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "A lightweight document oriented database written in pure Python with no external dependencies"; description = "A lightweight document oriented database written in pure Python with no external dependencies";
homepage = "https://github.com/msiemens/tinydb"; homepage = "https://github.com/msiemens/tinydb";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ marcus7070 ]; maintainers = with maintainers; [ marcus7070 ];
}; };
} }
@@ -3,7 +3,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "untangle"; pname = "untangle";
version = "1.1.1"; version = "1.1.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "stchris"; owner = "stchris";
repo = "untangle"; repo = "untangle";
@@ -11,11 +11,11 @@ buildPythonPackage rec {
rev = "61b57cd771a40df7d1621e9ec3c68d9acd733d31"; rev = "61b57cd771a40df7d1621e9ec3c68d9acd733d31";
sha256 = "0ffvlfyyl82xi4akz1lls32lrnlrn44ik41v8x8xh9ghy0n0ick7"; sha256 = "0ffvlfyyl82xi4akz1lls32lrnlrn44ik41v8x8xh9ghy0n0ick7";
}; };
checkPhase = '' checkPhase = ''
${python.interpreter} -m unittest discover -s tests ${python.interpreter} -m unittest discover -s tests
''; '';
meta = with lib; { meta = with lib; {
description = "Convert XML documents into Python objects"; description = "Convert XML documents into Python objects";
homepage = "https://github.com/stchris/untangle"; homepage = "https://github.com/stchris/untangle";
@@ -22,4 +22,4 @@ buildPythonPackage rec {
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ rakesh4g ]; maintainers = with maintainers; [ rakesh4g ];
}; };
} }
@@ -3,21 +3,21 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "vertica-python"; pname = "vertica-python";
version = "0.11.0"; version = "0.11.0";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "cceb39d081b8d1628956205642e740a9fabcfd2c6ecd982c51134fba8215d0bd"; sha256 = "cceb39d081b8d1628956205642e740a9fabcfd2c6ecd982c51134fba8215d0bd";
}; };
propagatedBuildInputs = [ future dateutil six ]; propagatedBuildInputs = [ future dateutil six ];
checkInputs = [ pytest mock parameterized ]; checkInputs = [ pytest mock parameterized ];
# Integration tests require an accessible Vertica db # Integration tests require an accessible Vertica db
checkPhase = '' checkPhase = ''
pytest --ignore vertica_python/tests/integration_tests pytest --ignore vertica_python/tests/integration_tests
''; '';
meta = with lib; { meta = with lib; {
description = "Native Python client for Vertica database"; description = "Native Python client for Vertica database";
homepage = "https://github.com/vertica/vertica-python"; homepage = "https://github.com/vertica/vertica-python";
+1 -1
View File
@@ -35,4 +35,4 @@ buildPythonPackage rec {
homepage = "https://github.com/jaraco/zipp"; homepage = "https://github.com/jaraco/zipp";
license = licenses.mit; license = licenses.mit;
}; };
} }
@@ -8,16 +8,16 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "zstandard"; pname = "zstandard";
version = "0.14.0"; version = "0.14.0";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "0lkn7n3bfp7zip6hkqwkqwc8pxmhhs4rr699k77h51rfln6kjllh"; sha256 = "0lkn7n3bfp7zip6hkqwkqwc8pxmhhs4rr699k77h51rfln6kjllh";
}; };
propagatedBuildInputs = [ cffi ]; propagatedBuildInputs = [ cffi ];
checkInputs = [ hypothesis ]; checkInputs = [ hypothesis ];
meta = with lib; { meta = with lib; {
description = "zstandard bindings for Python"; description = "zstandard bindings for Python";
homepage = "https://github.com/indygreg/python-zstandard"; homepage = "https://github.com/indygreg/python-zstandard";