Merge branch 'nixpkgs-unstable' into PR #111431

I'm not really sure about the conflicts in:
	pkgs/development/python-modules/psutil/default.nix

Hydra nixpkgs: ?compare=1666054
This commit is contained in:
Vladimír Čunát
2021-04-28 17:13:34 +02:00
8971 changed files with 264990 additions and 108348 deletions
@@ -1,26 +1,29 @@
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, setuptools_scm
, pytest
, setuptools-scm
, pytestCheckHook
, pytest-asyncio
, pytest-tornado
, pytestcov
, sqlalchemy
, tornado
, twisted
, mock
, trollius
, gevent
, six
, pytz
, tzlocal
, funcsigs
, futures
, isPy3k
, setuptools
, pythonOlder
}:
buildPythonPackage rec {
pname = "APScheduler";
version = "3.7.0";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
@@ -28,17 +31,18 @@ buildPythonPackage rec {
};
buildInputs = [
setuptools_scm
setuptools-scm
];
checkInputs = [
pytest
pytest-asyncio
pytest-tornado
pytestCheckHook
pytestcov
sqlalchemy
tornado
twisted
mock
trollius
gevent
];
@@ -47,18 +51,19 @@ buildPythonPackage rec {
pytz
tzlocal
funcsigs
] ++ lib.optional (!isPy3k) futures;
setuptools
];
checkPhase = ''
py.test
'';
disabledTests = lib.optionals stdenv.isDarwin [
"test_submit_job"
"test_max_instances"
];
# Somehow it cannot find pytestcov
doCheck = false;
pythonImportsCheck = [ "apscheduler" ];
meta = with lib; {
description = "A Python library that lets you schedule your Python code to be executed";
homepage = "https://pypi.python.org/pypi/APScheduler/";
homepage = "https://github.com/agronholm/apscheduler";
license = licenses.mit;
};
}
@@ -26,11 +26,11 @@ let
in buildPythonPackage rec {
pname = "Cython";
version = "0.29.21";
version = "0.29.22";
src = fetchPypi {
inherit pname version;
sha256 = "1bcwpra7c6k30yvic3sw2v3rq2dr40ypc4zqif6kr52mpn4wnyp5";
sha256 = "sha256-32uDx6bR2WfqiaKQPkqTE3djSil0WWUuRVFzTEgZVAY=";
};
nativeBuildInputs = [
@@ -49,6 +49,15 @@ in buildPythonPackage rec {
url = "https://github.com/cython/cython/commit/28251032f86c266065e4976080230481b1a1bb29.patch";
sha256 = "19rg7xs8gr90k3ya5c634bs8gww1sxyhdavv07cyd2k71afr83gy";
})
# backport Cython 3.0 trashcan support (https://github.com/cython/cython/pull/2842) to 0.X series.
# it does not affect Python code unless the code explicitly uses the feature.
# trashcan support is needed to avoid stack overflows during object deallocation in sage (https://trac.sagemath.org/ticket/27267)
(fetchpatch {
name = "trashcan.patch";
url = "https://git.sagemath.org/sage.git/plain/build/pkgs/cython/patches/trashcan.patch?id=4569a839f070a1a38d5dbce2a4d19233d25aeed2";
sha256 = "sha256-+pOF1XNTEtNseLpqPzrc1Jfwt5hGx7doUoccIhNneYY=";
})
];
checkPhase = ''
@@ -9,13 +9,19 @@
buildPythonPackage rec {
pname = "fabric";
version = "2.5.0";
version = "2.6.0";
src = fetchPypi {
inherit pname version;
sha256 = "19nzdibjfndzcwvby20p59igqwyzw7skrb45v2mxqsjma5yjv114";
sha256 = "47f184b070272796fd2f9f0436799e18f2ccba4ee8ee587796fca192acd46cd2";
};
# only relevant to python < 3.4
postPatch = ''
substituteInPlace setup.py \
--replace ', "pathlib2"' ' '
'';
propagatedBuildInputs = [ invoke paramiko cryptography ];
checkInputs = [ pytest mock pytest-relaxed ];
@@ -1,13 +1,21 @@
{ lib, buildPythonPackage, fetchPypi, isPy27, substituteAll, git, gitdb, mock, nose, ddt }:
{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, substituteAll
, git
, gitdb
, ddt
}:
buildPythonPackage rec {
version = "3.1.11";
pname = "GitPython";
version = "3.1.14";
disabled = isPy27; # no longer supported
src = fetchPypi {
inherit pname version;
sha256 = "befa4d101f91bad1b632df4308ec64555db684c360bd7d2130b4807d49ce86b8";
sha256 = "be27633e7509e58391f10207cd32b2a6cf5b908f92d9cd30da2e514e1137af61";
};
patches = [
@@ -17,16 +25,16 @@ buildPythonPackage rec {
})
];
checkInputs = [ nose ] ++ lib.optional isPy27 mock;
propagatedBuildInputs = [ gitdb ddt ];
# Tests require a git repo
doCheck = false;
pythonImportsCheck = [ "git" ];
meta = {
meta = with lib; {
description = "Python Git Library";
maintainers = [ ];
homepage = "https://github.com/gitpython-developers/GitPython";
license = lib.licenses.bsd3;
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
};
}
@@ -1,41 +1,64 @@
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k, curve25519-donna, ed25519
, cryptography, ecdsa, zeroconf, pytestCheckHook }:
{ lib
, buildPythonPackage
, base36
, cryptography
, curve25519-donna
, ecdsa
, ed25519
, fetchFromGitHub
, h11
, pyqrcode
, pytest-asyncio
, pytest-timeout
, pytestCheckHook
, pythonOlder
, zeroconf
}:
buildPythonPackage rec {
pname = "HAP-python";
version = "3.1.0";
version = "3.4.1";
disabled = pythonOlder "3.5";
# pypi package does not include tests
src = fetchFromGitHub {
owner = "ikalchev";
repo = pname;
rev = "v${version}";
sha256 = "1qg38lfjby2xfm09chzc40a7i3b84kgyfs7g4xq8f5m8s39hg6d7";
sha256 = "sha256-tZ6Zwlx5J62Xqpxxmt8Phdd9ngtKYhP/p3uor1dRfK8=";
};
disabled = !isPy3k;
propagatedBuildInputs = [
curve25519-donna
ed25519
base36
cryptography
curve25519-donna
ecdsa
ed25519
h11
pyqrcode
zeroconf
];
checkInputs = [ pytestCheckHook ];
checkInputs = [
pytest-asyncio
pytest-timeout
pytestCheckHook
];
# Disable tests requiring network access
disabledTestPaths = [
"tests/test_accessory_driver.py"
"tests/test_hap_handler.py"
"tests/test_hap_protocol.py"
];
disabledTests = [
#disable tests needing network
"test_persist"
"test_setup_endpoints"
"test_auto_add_aid_mac"
"test_service_callbacks"
"test_send_events"
"test_not_standalone_aid"
"test_start_stop_async_acc"
"test_external_zeroconf"
"test_start_stop_sync_acc"
"test_persist_and_load"
"test_we_can_connect"
"test_idle_connection_cleanup"
"test_we_can_start_stop"
"test_push_event"
"test_bridge_run_stop"
];
meta = with lib; {
@@ -9,11 +9,11 @@
buildPythonPackage rec {
pname = "Mako";
version = "1.1.3";
version = "1.1.4";
src = fetchPypi {
inherit pname version;
sha256 = "8195c8c1400ceb53496064314c6736719c6f25e7479cd24c77be3d9361cddc27";
sha256 = "17831f0b7087c313c0ffae2bcbbd3c1d5ba9eeac9c38f2eb7b50e8c99fe9d5ab";
};
propagatedBuildInputs = [ markupsafe ];
@@ -9,11 +9,11 @@
buildPythonPackage rec {
pname = "Markups";
version = "3.0.0";
version = "3.1.1";
src = fetchPypi {
inherit pname version;
sha256 = "1ea19458dfca6a4562044e701aa8698089a0c659fc535689ed260f89a04f8d39";
sha256 = "e309d79dde0935576ce1def6752f2127a12e2c2ea2ae8b0c69f99ff8bc12181d";
};
checkInputs = [ markdown docutils pygments ];
@@ -1,4 +1,5 @@
{ lib
, stdenv
, buildPythonPackage
, isPy3k
, fetchPypi
@@ -35,7 +36,7 @@
buildPythonPackage rec {
pname = "Nikola";
version = "8.1.2";
version = "8.1.3";
# Nix contains only Python 3 supported version of doit, which is a dependency
# of Nikola. Python 2 support would require older doit 0.29.0 (which on the
@@ -54,7 +55,7 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "26f4fb1a2b0105cf0f71187c6c1eb54283767a883d1c8f4ca8c8039033217d27";
sha256 = "05eac356bb4273cdd05d2dd6ad676226133496c457af91987c3f0d40e2fe57ef";
};
patchPhase = ''
@@ -72,5 +73,7 @@ buildPythonPackage rec {
description = "A modular, fast, simple, static website and blog generator";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ jluttine ];
# all tests fail
broken = stdenv.isDarwin;
};
}
@@ -1,13 +1,19 @@
{ lib, buildPythonPackage, fetchFromGitHub
, flit
, lxml, httpx
, pytest, pytestcov, pytest-asyncio, pytest-mock, aresponses
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, flit
, async-timeout
, lxml
, httpx
, pytestCheckHook
, pytest-asyncio
, pytest-httpx
}:
buildPythonPackage rec {
pname = "PyRMVtransport";
version = "0.2.10";
version = "0.3.1";
format = "pyproject";
disabled = pythonOlder "3.6";
@@ -15,7 +21,7 @@ buildPythonPackage rec {
owner = "cgtobi";
repo = pname;
rev = "v${version}";
sha256 = "03qrylidb1d6zw6a22d1drdf73cvfxqcqaa8qi8x4pli1axcfh5w";
sha256 = "1savzndg8l7rrc5dgzgsrdz9hnnjfv6qs5drznqmdw4f2rq84ypa";
};
nativeBuildInputs = [
@@ -23,24 +29,18 @@ buildPythonPackage rec {
];
propagatedBuildInputs = [
async-timeout
httpx
lxml
];
# requires pytest-httpx
doCheck = false;
pythonImportsCheck = [ "RMVtransport" ];
checkInputs = [
pytest
pytestcov
pytestCheckHook
pytest-asyncio
pytest-mock
# pytest-httpx is missing
aresponses
pytest-httpx
];
checkPhase = ''
pytest --cov=RMVtransport tests
'';
meta = with lib; {
homepage = "https://github.com/cgtobi/PyRMVtransport";
@@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchpatch
, docutils
}:
@@ -13,6 +14,15 @@ buildPythonPackage rec {
sha256 = "98c8aa5a9f778fcd1026a17361ddaf7330d1b7c62ae97c3bb0ae73e0b9b6b0fe";
};
patches = [
(fetchpatch {
name = "CVE-2021-27291.patch";
url = "https://github.com/pygments/pygments/commit/2e7e8c4a7b318f4032493773732754e418279a14.patch";
sha256 = "0ap7jgkmvkkzijabsgnfrwl376cjsxa4jmzvqysrkwpjq3q4rxpa";
excludes = ["CHANGES"];
})
];
propagatedBuildInputs = [ docutils ];
# Circular dependency with sphinx
@@ -6,17 +6,18 @@
buildPythonPackage rec {
pname = "Pygments";
version = "2.7.2";
version = "2.8.1";
src = fetchPypi {
inherit pname version;
sha256 = "381985fcc551eb9d37c52088a32914e00517e57f4a21609f48141ba08e193fa0";
sha256 = "153zyxigm879sk2n71lfv03y2pgxb7dl0dlsbwkz9aydxnkf2mi6";
};
propagatedBuildInputs = [ docutils ];
# Circular dependency with sphinx
doCheck = false;
pythonImportsCheck = [ "pygments" ];
meta = {
homepage = "https://pygments.org/";
@@ -1,29 +1,38 @@
{ lib, stdenv, buildPythonPackage, fetchPypi, libspatialindex, numpy }:
{ lib,
stdenv,
buildPythonPackage,
fetchPypi,
libspatialindex,
numpy,
pytestCheckHook
}:
buildPythonPackage rec {
pname = "Rtree";
version = "0.9.4";
version = "0.9.7";
src = fetchPypi {
inherit pname version;
sha256 = "0i1zlyz6vczy3cgg7fan5hq9zzjm7s7zdzfh83ma8g9vq3i2gqya";
sha256 = "be8772ca34699a9ad3fb4cfe2cfb6629854e453c10b3328039301bbfc128ca3e";
};
propagatedBuildInputs = [ libspatialindex ];
buildInputs = [ libspatialindex ];
patchPhase = ''
substituteInPlace rtree/core.py --replace \
substituteInPlace rtree/finder.py --replace \
"find_library('spatialindex_c')" "'${libspatialindex}/lib/libspatialindex_c${stdenv.hostPlatform.extensions.sharedLibrary}'"
'';
# Tests appear to be broken due to mysterious memory unsafe issues. See #36760
doCheck = false;
checkInputs = [ numpy ];
checkInputs = [
numpy
pytestCheckHook
];
pythonImportsCheck = [ "rtree" ];
meta = with lib; {
description = "R-Tree spatial index for Python GIS";
homepage = "https://toblerity.org/rtree/";
license = licenses.lgpl21;
license = licenses.mit;
maintainers = with maintainers; [ bgamari ];
};
}
@@ -22,13 +22,13 @@
buildPythonPackage rec {
pname = "WSME";
version = "0.10.0";
version = "0.10.1";
disabled = pythonAtLeast "3.9";
src = fetchPypi {
inherit pname version;
sha256 = "965b9ce48161e5c50d84aedcf50dca698f05bf07e9d489201bccaec3141cd304";
sha256 = "34209b623635a905bcdbc654f53ac814d038da65e4c2bc070ea1745021984079";
};
nativeBuildInputs = [ pbr ];
@@ -1,28 +1,28 @@
{ lib
, buildPythonPackage
, fetchPypi
, imagemagick7Big
, imagemagickBig
}:
buildPythonPackage rec {
pname = "Wand";
version = "0.6.5";
version = "0.6.6";
src = fetchPypi {
inherit pname version;
sha256 = "ec981b4f07f7582fc564aba8b57763a549392e9ef8b6a338e9da54cdd229cf95";
sha256 = "540a2da5fb3ada1f0abf6968e0fa01ca7de6cd517f3be5c52d03a4fc8d54d75e";
};
postPatch = ''
substituteInPlace wand/api.py --replace \
"magick_home = os.environ.get('MAGICK_HOME')" \
"magick_home = '${imagemagick7Big}'"
"magick_home = '${imagemagickBig}'"
'';
# tests not included with pypi release
doCheck = false;
passthru.imagemagick = imagemagick7Big;
passthru.imagemagick = imagemagickBig;
meta = with lib; {
description = "Ctypes-based simple MagickWand API binding for Python";
@@ -8,11 +8,11 @@
buildPythonPackage rec {
pname = "absl-py";
version = "0.11.0";
version = "0.12.0";
src = fetchPypi {
inherit pname version;
sha256 = "673cccb88d810e5627d0c1c818158485d106f65a583880e2f730c997399bcfa7";
sha256 = "b44f68984a5ceb2607d135a615999b93924c771238a63920d17d3387b0d229d5";
};
propagatedBuildInputs = [
@@ -1,41 +1,47 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, mpmath
, numpy
, pipdate
, pybind11
, pyfma
, eigen
, importlib-metadata
, pytestCheckHook
, matplotlib
, dufte
, isPy27
}:
buildPythonPackage rec {
pname = "accupy";
version = "0.3.3";
version = "0.3.4";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "a234c9897a683a6ade44f0bafa71196f122a61e3ebeacb5b813e7d139d54f3c7";
sha256 = "36506aca53154528997ac22aee6292c83da0f4850bb375c149512b5284bd4948";
};
nativeBuildInputs = [
pybind11
];
buildInputs = [
pybind11 eigen
eigen
];
propagatedBuildInputs = [
mpmath
numpy
pipdate
pyfma
];
] ++ lib.optional (pythonOlder "3.8") importlib-metadata;
checkInputs = [
pytestCheckHook
matplotlib
dufte
];
postConfigure = ''
@@ -1,26 +1,48 @@
{ aiohttp, buildPythonPackage, fetchFromGitHub, lib, pytest, pytestCheckHook
, pytestcov, pytestrunner, pytest-asyncio, python, pythonOlder }:
{ lib
, aiohttp
, aioresponses
, buildPythonPackage
, fetchFromGitHub
, pytest-asyncio
, pytest-error-for-skips
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "accuweather";
version = "0.0.11";
disabled = pythonOlder "3.8";
version = "0.1.1";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "bieniu";
repo = pname;
rev = version;
sha256 = "1sgbw9yldf81phwx6pbvqg9sp767whxymyj0ca9pwx1r6ipr080h";
sha256 = "sha256-fjOwa13hxY8/gCM6TCAFWVmEY1oZyqKyc6o3OSsxHpY=";
};
nativeBuildInputs = [ pytestrunner ];
propagatedBuildInputs = [ aiohttp ];
checkInputs = [ pytestCheckHook pytestcov pytest-asyncio ];
postPatch = ''
substituteInPlace setup.py \
--replace "pytest-runner" ""
substituteInPlace pytest.ini \
--replace "--cov --cov-report term-missing" ""
'';
propagatedBuildInputs = [
aiohttp
];
checkInputs = [
aioresponses
pytest-asyncio
pytest-error-for-skips
pytestCheckHook
];
pythonImportsCheck = [ "accuweather" ];
meta = with lib; {
description =
"Python wrapper for getting weather data from AccuWeather servers.";
description = "Python wrapper for getting weather data from AccuWeather servers";
homepage = "https://github.com/bieniu/accuweather";
license = licenses.asl20;
maintainers = with maintainers; [ jamiemagee ];
@@ -10,7 +10,6 @@
, requests-toolbelt
, six
, werkzeug
, mock
, ndg-httpsclient
}:
@@ -21,7 +20,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [
cryptography pyasn1 pyopenssl pyRFC3339 pytz requests requests-toolbelt six
werkzeug mock ndg-httpsclient josepy
werkzeug ndg-httpsclient josepy
];
# does not contain any tests
@@ -5,12 +5,13 @@
}:
buildPythonPackage rec {
pname = "Adafruit-PlatformDetect";
version = "2.27.1";
pname = "adafruit-platformdetect";
version = "3.8.0";
src = fetchPypi {
inherit pname version;
sha256 = "0rnmy74rjjcyni5sr8h1djffpj7wngn2wqckl5vknp2smaihp34l";
pname = "Adafruit-PlatformDetect";
inherit version;
sha256 = "sha256-AjUpxdY/5IoWMBtufP3OVnMpUwpxgpCNWoydH1w+t+Y=";
};
nativeBuildInputs = [ setuptools-scm ];
@@ -3,11 +3,11 @@
buildPythonPackage rec {
pname = "adal";
version = "1.2.5";
version = "1.2.6";
src = fetchPypi {
inherit pname version;
sha256 = "8003ba03ef04170195b3eddda8a5ab43649ef2c5f0287023d515affb1ccfcfc3";
sha256 = "08b94d30676ceb78df31bce9dd0f05f1bc2b6172e44c437cbf5b968a00ac6489";
};
propagatedBuildInputs = [ requests pyjwt dateutil ];
@@ -0,0 +1,34 @@
{ lib, jdk11, fetchFromGitHub, buildPythonPackage, docopt, psutil, pythonOlder }:
buildPythonPackage rec {
pname = "adb-enhanced";
version = "2.5.11";
disabled = pythonOlder "3.4";
src = fetchFromGitHub {
owner = "ashishb";
repo = pname;
rev = version;
sha256 = "sha256-jb5O7Qxk2xAX5sax6nqywcGBJao5Xfff9s1yvdfvDCs=";
};
postPatch = ''
substituteInPlace adbe/adb_enhanced.py \
--replace "cmd = 'java" "cmd = '${jdk11}/bin/java"
'';
propagatedBuildInputs = [ psutil docopt ];
# Disable tests because they require a dedicated android emulator
doCheck = false;
pythonImportsCheck = [ "adbe" ];
meta = with lib; {
description = "Tool for Android testing and development";
homepage = "https://github.com/ashishb/adb-enhanced";
license = licenses.asl20;
maintainers = with maintainers; [ vtuan10 ];
};
}
@@ -1,9 +1,20 @@
{ aiofiles, buildPythonPackage, cryptography, fetchFromGitHub, isPy3k, lib
, libusb1, mock, pyasn1, python, pycryptodome, rsa }:
{ lib
, aiofiles
, buildPythonPackage
, cryptography
, fetchFromGitHub
, isPy3k
, libusb1
, mock
, pyasn1
, pycryptodome
, pytestCheckHook
, rsa
}:
buildPythonPackage rec {
pname = "adb-shell";
version = "0.3.0";
version = "0.3.1";
disabled = !isPy3k;
@@ -12,19 +23,27 @@ buildPythonPackage rec {
owner = "JeffLIrion";
repo = "adb_shell";
rev = "v${version}";
sha256 = "0qnlhcd58zxh39cd5xzdx8yc5hc0pf8kix4rbn4avsapwb0l75n2";
sha256 = "sha256-b+9ySme44TdIlVnF8AHBBGd8pkoeYG99wmDK/nyAreo=";
};
propagatedBuildInputs = [ aiofiles cryptography libusb1 pyasn1 rsa ];
propagatedBuildInputs = [
aiofiles
cryptography
libusb1
pyasn1
rsa
];
checkInputs = [ mock pycryptodome ];
checkPhase = ''
${python.interpreter} -m unittest discover -s tests -t .
'';
checkInputs = [
mock
pycryptodome
pytestCheckHook
];
pythonImportsCheck = [ "adb_shell" ];
meta = with lib; {
description =
"A Python implementation of ADB with shell and FileSync functionality.";
description = "Python implementation of ADB with shell and FileSync functionality";
homepage = "https://github.com/JeffLIrion/adb_shell";
license = licenses.asl20;
maintainers = with maintainers; [ jamiemagee ];
@@ -1,10 +1,9 @@
{ stdenv
, lib
, rustPlatform
, fetchFromGitHub
, pipInstallHook
, buildPythonPackage
, rustPlatform
, pythonImportsCheckHook
, maturin
, pkg-config
, openssl
, publicsuffix-list
@@ -13,7 +12,7 @@
, Security
}:
rustPlatform.buildRustPackage rec {
buildPythonPackage rec {
pname = "adblock";
version = "0.4.0";
disabled = isPy27;
@@ -25,39 +24,32 @@ rustPlatform.buildRustPackage rec {
rev = version;
sha256 = "10d6ks2fyzbizq3kb69q478idj0h86k6ygjb6wl3zq3mf65ma4zg";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
hash = "sha256-gEFmj3/KvhvvsOK2nX2L1RUD4Wfp3nYzEzVnQZIsIDY=";
};
format = "pyproject";
cargoSha256 = "0di05j942rrm2crpdpp9czhh65fmidyrvdp2n3pipgnagy7nchc0";
nativeBuildInputs = [ pipInstallHook maturin pkg-config pythonImportsCheckHook ];
nativeBuildInputs = [ pkg-config pythonImportsCheckHook ]
++ (with rustPlatform; [ cargoSetupHook maturinBuildHook ]);
buildInputs = [ openssl ]
++ lib.optionals stdenv.isDarwin [ CoreFoundation Security ];
PSL_PATH = "${publicsuffix-list}/share/publicsuffix/public_suffix_list.dat";
buildPhase = ''
runHook preBuild
maturin build --release --manylinux off --strip
runHook postBuild
'';
# There are no rust tests
doCheck = false;
pythonImportsCheck = [ "adblock" ];
installPhase = ''
runHook preInstall
install -Dm644 -t dist target/wheels/*.whl
pipInstallPhase
runHook postInstall
'';
passthru.meta = with lib; {
meta = with lib; {
description = "Python wrapper for Brave's adblocking library, which is written in Rust";
homepage = "https://github.com/ArniDagur/python-adblock/";
maintainers = with maintainers; [ petabyteboy ];
license = with licenses; [ asl20 mit ];
platforms = with platforms; [ all ];
};
}
@@ -1,4 +1,6 @@
{ lib, python3Packages, }:
{ lib
, python3Packages
}:
python3Packages.buildPythonApplication rec {
pname = "addic7ed-cli";
@@ -14,6 +16,10 @@ python3Packages.buildPythonApplication rec {
pyquery
];
# Tests require network access
doCheck = false;
pythonImportsCheck = [ "addic7ed_cli" ];
meta = with lib; {
description = "A commandline access to addic7ed subtitles";
homepage = "https://github.com/BenoitZugmeyer/addic7ed-cli";
@@ -1,24 +1,26 @@
{ lib
, buildPythonPackage
, fetchPypi
, setuptools-scm
, alarmdecoder
}:
buildPythonPackage rec {
pname = "adext";
version = "0.3";
version = "0.4.1";
src = fetchPypi {
inherit pname version;
sha256 = "184qxw6i5ixnhgkjnby4zwn4jg90mxb8xy9vbg80x5w331p4z50f";
sha256 = "1yz1rpfvhbf7kfjck5vadbj9rd3bkx5248whaa3impdrjh7vs03x";
};
postPatch = ''
substituteInPlace setup.py \
--replace "alarmdecoder==1.13.2" "alarmdecoder>=1.13.2"
'';
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [ alarmdecoder ];
propagatedBuildInputs = [
alarmdecoder
];
# Tests are not published yet
doCheck = false;
@@ -1,24 +1,49 @@
{ aiohttp, aresponses, buildPythonPackage, fetchFromGitHub, isPy3k, lib
, pytest-asyncio, pytestCheckHook, yarl }:
{ lib
, aiohttp
, aresponses
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, yarl
}:
buildPythonPackage rec {
pname = "adguardhome";
version = "0.4.2";
disabled = !isPy3k;
version = "0.5.0";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "frenck";
repo = "python-${pname}";
rev = "v${version}";
sha256 = "0lcf3yg27amrnqvgn5nw4jn2j0vj4yfmyl5p5yncmn7dh6bdbsp8";
sha256 = "sha256-f8uZF4DXbfiL1nL82shjGNpo6lXSUomRgO1YnNT/GDw=";
};
propagatedBuildInputs = [ aiohttp yarl ];
checkInputs = [ aresponses pytest-asyncio pytestCheckHook ];
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
aiohttp
yarl
];
checkInputs = [
aresponses
pytest-asyncio
pytestCheckHook
];
postPatch = ''
substituteInPlace pyproject.toml --replace "--cov" ""
'';
pythonImportsCheck = [ "adguardhome" ];
meta = with lib; {
description = "Asynchronous Python client for the AdGuard Home API.";
description = "Python client for the AdGuard Home API";
homepage = "https://github.com/frenck/python-adguardhome";
license = licenses.mit;
maintainers = with maintainers; [ jamiemagee ];
@@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "aenum";
version = "2.2.6";
version = "3.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "260225470b49429f5893a195a8b99c73a8d182be42bf90c37c93e7b20e44eaae";
sha256 = "17cd8cfed1ee4b617198c9fabbabd70ebd8f01e54ac29cd6c3a92df14bd86656";
};
# For Python 3, locale has to be set to en_US.UTF-8 for
@@ -17,14 +17,19 @@ buildPythonPackage rec {
sha256 = "1qg7dgl81yq0sp50pkhgvmf8az1svx20zmpkfa68ka9d0ssh1wjw";
};
# Skip date-dependent test. See
# https://github.com/adobe-type-tools/afdko/pull/1232
# https://github.com/NixOS/nixpkgs/pull/98158#issuecomment-704321117
patches = [
# Skip date-dependent test. See
# https://github.com/adobe-type-tools/afdko/pull/1232
# https://github.com/NixOS/nixpkgs/pull/98158#issuecomment-704321117
(fetchpatch {
url = "https://github.com/adobe-type-tools/afdko/commit/2c36ad10f9d964759f643e8ed7b0972a27aa26bd.patch";
sha256 = "0p6a485mmzrbfldfbhgfghsypfiad3cabcw7qlw2rh993ivpnibf";
})
# fix tests for fonttools 4.21.1
(fetchpatch {
url = "https://github.com/adobe-type-tools/afdko/commit/0919e7454a0a05a1b141c23bf8134c67e6b688fc.patch";
sha256 = "0glly85swyl1kcc0mi8i0w4bm148bb001jz1winz5drfrw3a63jp";
})
];
nativeBuildInputs = [ setuptools_scm ];
@@ -1,20 +1,39 @@
{ lib, fetchPypi, buildPythonPackage, agate, sqlalchemy, crate }:
{ lib
, buildPythonPackage
, isPy27
, fetchPypi
, agate
, sqlalchemy
, crate
, nose
, geojson
}:
buildPythonPackage rec {
pname = "agate-sql";
version = "0.5.5";
pname = "agate-sql";
version = "0.5.6";
src = fetchPypi {
inherit pname version;
sha256 = "50a39754babef6cd0d1b1e75763324a49593394fe46ab1ea9546791b5e6b69a7";
};
disabled = isPy27;
propagatedBuildInputs = [ agate sqlalchemy crate ];
src = fetchPypi {
inherit pname version;
sha256 = "056dc9e587fbdfdf3f1c9950f4793a5ee87622c19deba31aa0a6d6681816dcde";
};
meta = with lib; {
description = "Adds SQL read/write support to agate.";
homepage = "https://github.com/wireservice/agate-sql";
license = with licenses; [ mit ];
maintainers = with maintainers; [ vrthra ];
};
propagatedBuildInputs = [ agate sqlalchemy ];
checkInputs = [ crate nose geojson ];
checkPhase = ''
nosetests
'';
pythonImportsCheck = [ "agatesql" ];
meta = with lib; {
description = "Adds SQL read/write support to agate.";
homepage = "https://github.com/wireservice/agate-sql";
license = with licenses; [ mit ];
maintainers = with maintainers; [ vrthra ];
};
}
@@ -0,0 +1,32 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pyvex
}:
buildPythonPackage rec {
pname = "ailment";
version = "9.0.6852";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "angr";
repo = pname;
rev = "v${version}";
sha256 = "sha256-yIYZubZ8073voe4C78QITP3Pau/mrpNTyhPpU/QftXo=";
};
propagatedBuildInputs = [ pyvex ];
# Tests depend on angr (possibly a circular dependency)
doCheck = false;
#pythonImportsCheck = [ "ailment" ];
meta = with lib; {
description = "The angr Intermediate Language";
homepage = "https://github.com/angr/ailment";
license = with licenses; [ bsd2 ];
maintainers = with maintainers; [ fab ];
};
}
@@ -0,0 +1,57 @@
{ lib
, aiohttp
, aresponses
, asynctest
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytest-asyncio
, pytest-cov
, pytestCheckHook
, python-engineio
, python-socketio
, pythonOlder
, websockets
}:
buildPythonPackage rec {
pname = "aioambient";
version = "1.2.4";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "bachya";
repo = pname;
rev = version;
sha256 = "sha256-uqvM5F0rpw+xeCXYl4lGMt3r0ugPsUmSvujmTJ9HABk=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
aiohttp
python-engineio
python-socketio
websockets
];
checkInputs = [
aresponses
asynctest
pytest-asyncio
pytest-cov
pytestCheckHook
];
# Ignore the examples directory as the files are prefixed with test_
pytestFlagsArray = [ "--ignore examples/" ];
pythonImportsCheck = [ "aioambient" ];
meta = with lib; {
description = "Python library for the Ambient Weather API";
homepage = "https://github.com/bachya/aioambient";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}
@@ -0,0 +1,45 @@
{ lib
, asyncssh
, buildPythonPackage
, fetchFromGitHub
, pytest-asyncio
, pytest-mock
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "aioasuswrt";
version = "1.3.3";
src = fetchFromGitHub {
owner = "kennedyshead";
repo = pname;
rev = "V${version}";
sha256 = "1h1qwc7szgrcwiz4q6x4mlf26is20lj1ds5rcb9i611j26656v6d";
};
postPatch = ''
substituteInPlace setup.py \
--replace "cryptography==3.3.2" "cryptography"
substituteInPlace setup.cfg \
--replace "--cov-report html" "" \
--replace "--cov-report term-missing" ""
'';
propagatedBuildInputs = [ asyncssh ];
checkInputs = [
pytest-asyncio
pytest-mock
pytestCheckHook
];
pythonImportsCheck = [ "aioasuswrt" ];
meta = with lib; {
description = "Python module for Asuswrt";
homepage = "https://github.com/kennedyshead/aioasuswrt";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}
@@ -1,10 +1,7 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, pytestrunner
, typing-extensions
, wrapt
, aioitertools
, aiohttp
@@ -13,12 +10,12 @@
buildPythonPackage rec {
pname = "aiobotocore";
version = "1.1.2";
version = "1.2.2";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "1fn9hgcg3qr9f7srjxc21bzkiix4al9308531slwlm99r0x3xcjl";
sha256 = "37c23166603a3bd134e5f6fc22dbbf8c274d4d24c71418fba292ed2cd7a0bf43";
};
# relax version constraints: aiobotocore works with newer botocore versions
@@ -0,0 +1,34 @@
{ lib
, aioredis
, buildPythonPackage
, fetchFromGitHub
, msgpack
}:
buildPythonPackage rec {
pname = "aiocache";
version = "0.11.1";
src = fetchFromGitHub {
owner = "aio-libs";
repo = pname;
rev = version;
sha256 = "1czs8pvhzi92qy2dch2995rb62mxpbhd80dh2ir7zpa9qcm6wxvx";
};
propagatedBuildInputs = [
aioredis
msgpack
];
# aiomcache would be required but last release was in 2017
doCheck = false;
pythonImportsCheck = [ "aiocache" ];
meta = with lib; {
description = "Python API Rate Limit Decorator";
homepage = "https://github.com/tomasbasham/ratelimit";
license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ fab ];
};
}
@@ -0,0 +1,56 @@
{ lib
, async-dns
, buildPythonPackage
, fetchFromGitHub
, ifaddr
, pyroute2
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "aiodiscover";
version = "1.3.4";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "bdraco";
repo = pname;
rev = "v${version}";
sha256 = "sha256-TmWl5d5HwyqWPUjwtEvc5FzVfxV/K1pekljcMkGN0Ag=";
};
propagatedBuildInputs = [
async-dns
pyroute2
ifaddr
];
postPatch = ''
substituteInPlace setup.py --replace '"pytest-runner>=5.2",' ""
'';
checkInputs = [
pytest-asyncio
pytestCheckHook
];
preBuild = ''
export HOME=$TMPDIR
'';
disabledTests = [
# Tests require access to /etc/resolv.conf
"test_async_discover_hosts"
];
pythonImportsCheck = ["aiodiscover"];
meta = with lib; {
description = "Python module to discover hosts via ARP and PTR lookup";
homepage = "https://github.com/bdraco/aiodiscover";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}
@@ -1,5 +1,7 @@
{ lib, buildPythonPackage, fetchPypi, pythonOlder
, isPy27, isPyPy, python, pycares, typing, trollius }:
, isPy27, isPyPy, python, pycares, typing ? null
, trollius ? null
}:
buildPythonPackage rec {
pname = "aiodns";
@@ -0,0 +1,49 @@
{ lib
, aiohttp
, aioresponses
, buildPythonPackage
, fetchFromGitHub
, pytest-asyncio
, pytest-raises
, pytestCheckHook
, pythonOlder
, xmltodict
}:
buildPythonPackage rec {
pname = "aioemonitor";
version = "1.0.5";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "bdraco";
repo = pname;
rev = "v${version}";
sha256 = "0h8zqqy8v8r1fl9bp3m8icr2sy44p0mbfl1hbb0zni17r9r50dhn";
};
propagatedBuildInputs = [
aiohttp
xmltodict
];
checkInputs = [
aioresponses
pytest-asyncio
pytest-raises
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.py --replace '"pytest-runner>=5.2",' ""
'';
pythonImportsCheck = [ "aioemonitor" ];
meta = with lib; {
description = "Python client for SiteSage Emonitor";
homepage = "https://github.com/bdraco/aioemonitor";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}
@@ -2,13 +2,13 @@
buildPythonPackage rec {
pname = "aioesphomeapi";
version = "2.6.4";
version = "2.6.6";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "d8def7a909c0471479e1d8b0965de6bb7644b8de315d6e578f9d848b8a6812d0";
sha256 = "sha256-LdBUtU5rNoixh7DPIFkHxLMvBeI6MZH57sO0IjuOQAw=";
};
propagatedBuildInputs = [ attrs protobuf zeroconf ];
@@ -2,7 +2,7 @@
, buildPythonPackage
, fetchPypi
, eventlet
, trollius
, trollius ? null
, mock
, python
}:
@@ -12,14 +12,14 @@
buildPythonPackage rec {
pname = "aioflo";
version = "0.4.2";
version = "0.4.3";
format = "pyproject";
src = fetchFromGitHub {
owner = "bachya";
repo = pname;
rev = version;
sha256 = "1ppsinmjph6snj7s4hg28p3qa67kpkadc98ikjjg6w65vcm3dlaz";
sha256 = "sha256-Dap3yjFIS+k/LLNg+vmYmiFQCOEPNp27p0GCMpn/edA=";
};
nativeBuildInputs = [ poetry-core ];
@@ -4,7 +4,6 @@
, asyncio-dgram
, asynctest
, buildPythonPackage
, cryptography
, fetchFromGitHub
, poetry
, pytest-aiohttp
@@ -16,14 +15,14 @@
buildPythonPackage rec {
pname = "aioguardian";
version = "1.0.4";
version = "1.0.7";
disabled = pythonAtLeast "3.9";
src = fetchFromGitHub {
owner = "bachya";
repo = pname;
rev = version;
sha256 = "1cbxcsxh9c8r2zx3lsjdns26sm2qmlwnqgah2sfzbgp1lay23vvq";
sha256 = "sha256-KMhq86hcqoYloS/6VHsl+3KVEZBbN97ABrZlmEr32Z8=";
};
format = "pyproject";
@@ -1,27 +1,36 @@
{ lib, buildPythonPackage, fetchPypi, isPy3k, slixmpp, async-timeout, aiohttp }:
{ lib
, aiohttp
, async-timeout
, buildPythonPackage
, fetchPypi
, isPy3k
, slixmpp
}:
buildPythonPackage rec {
pname = "aioharmony";
version = "0.2.6";
version = "0.2.7";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "90f4d1220d44b48b21a57e0273aa3c4a51599d0097af88e8be26df151e599344";
sha256 = "sha256-aej8xC0Bsy6ip7IwO6onp55p6afkz8yZnz14cCExSPA=";
};
disabled = !isPy3k;
propagatedBuildInputs = [
aiohttp
async-timeout
slixmpp
];
#aioharmony does not seem to include tests
# aioharmony does not seem to include tests
doCheck = false;
pythonImportsCheck = [ "aioharmony.harmonyapi" "aioharmony.harmonyclient" ];
propagatedBuildInputs = [ slixmpp async-timeout aiohttp ];
meta = with lib; {
homepage = "https://github.com/ehendrix23/aioharmony";
description =
"Asyncio Python library for connecting to and controlling the Logitech Harmony";
description = "Python library for interacting the Logitech Harmony devices";
license = licenses.asl20;
maintainers = with maintainers; [ oro ];
};
@@ -11,7 +11,7 @@
buildPythonPackage rec {
pname = "aiohomekit";
version = "0.2.60";
version = "0.2.61";
format = "pyproject";
disabled = pythonAtLeast "3.9";
@@ -19,7 +19,7 @@ buildPythonPackage rec {
owner = "Jc2k";
repo = pname;
rev = version;
sha256 = "03llk5i22hq163x568kz0qar5h0sda8f8cxbmgya6z2dcxv0a83p";
sha256 = "047ql5a4i4354jgr8xr2waim8j522z58vbfi7aa62jqc9l8jzxzk";
};
nativeBuildInputs = [ poetry ];
@@ -1,5 +1,5 @@
{ lib, buildPythonPackage, fetchPypi, pythonOlder
, typing, aiohttp
, typing ? null, aiohttp
}:
buildPythonPackage rec {
@@ -0,0 +1,37 @@
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "aiohttp-wsgi";
version = "0.8.2";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "etianen";
repo = pname;
rev = version;
sha256 = "0wirn3xqxxgkpy5spicd7p1bkdnsrch61x2kcpdwpixmx961pq7x";
};
propagatedBuildInputs = [
aiohttp
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "aiohttp_wsgi" ];
meta = with lib; {
description = "WSGI adapter for aiohttp";
homepage = "https://github.com/etianen/aiohttp-wsgi";
license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ fab ];
};
}
@@ -3,82 +3,77 @@
, buildPythonPackage
, fetchPypi
, pythonOlder
, async-timeout
, attrs
, chardet
, multidict
, async-timeout
, yarl
, idna-ssl
, multidict
, typing-extensions
, pytestrunner
, pytestCheckHook
, gunicorn
, yarl
, async_generator
, pytest_xdist
, pytestcov
, pytest-mock
, trustme
, brotlipy
, freezegun
, isPy38
, gunicorn
, pytest-mock
, pytest-xdist
, pytestCheckHook
, re-assert
, trustme
}:
buildPythonPackage rec {
pname = "aiohttp";
version = "3.7.3";
# https://github.com/aio-libs/aiohttp/issues/4525 python3.8 failures
disabled = pythonOlder "3.5";
version = "3.7.4.post0";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "9c1a81af067e72261c9cbe33ea792893e83bc6aa987bfbd6fdc1e5e7b22777c4";
sha256 = "493d3299ebe5f5a7c66b9819eacdcfbbaaf1a8e84911ddffcdc48888497afecf";
};
checkInputs = [
pytestrunner pytestCheckHook gunicorn async_generator pytest_xdist
pytest-mock pytestcov trustme brotlipy freezegun
re-assert
];
postPatch = ''
substituteInPlace setup.cfg --replace " --cov=aiohttp" ""
'';
propagatedBuildInputs = [
async-timeout
attrs
chardet
multidict
async-timeout
typing-extensions
yarl
] ++ lib.optionals (pythonOlder "3.7") [
idna-ssl
];
checkInputs = [
async_generator
brotlipy
freezegun
gunicorn
pytest-mock
pytest-xdist
pytestCheckHook
re-assert
trustme
];
pytestFlagsArray = [
"-n auto"
];
disabledTests = [
# disable tests which attempt to do loopback connections
"get_valid_log_format_exc"
"test_access_logger_atoms"
"aiohttp_request_coroutine"
"server_close_keepalive_connection"
"connector"
"client_disconnect"
"handle_keepalive_on_closed_connection"
"proxy_https_bad_response"
"partially_applied_handler"
"middleware"
# Disable tests that require network access
"test_mark_formdata_as_processed"
# no longer compatible with pytest>=6
"aiohttp_plugin_async_fixture"
] ++ lib.optionals stdenv.is32bit [
"test_cookiejar"
] ++ lib.optionals isPy38 [
# Python 3.8 https://github.com/aio-libs/aiohttp/issues/4525
"test_read_boundary_with_incomplete_chunk"
"test_read_incomplete_chunk"
"test_request_tracing_exception"
] ++ lib.optionals stdenv.isDarwin [
"test_addresses" # https://github.com/aio-libs/aiohttp/issues/3572
"test_addresses" # https://github.com/aio-libs/aiohttp/issues/3572, remove >= v4.0.0
"test_close"
];
__darwinAllowLocalNetworking = true;
# aiohttp in current folder shadows installed version
# Probably because we run `python -m pytest` instead of `pytest` in the hook.
preCheck = ''
@@ -8,20 +8,19 @@
, nose
, pyopenssl
, pytestCheckHook
, pythonOlder
, pytz
, tzlocal
}:
buildPythonPackage rec {
pname = "aioimaplib";
version = "0.7.18";
version = "0.9.0";
src = fetchFromGitHub {
owner = "bamthomas";
repo = pname;
rev = version;
sha256 = "037fxwmkdfb95cqcykrhn37p138wg9pvlsgdf45vyn1mhz5crky5";
sha256 = "sha256-xxZAeJDuqrPv4kGgDr0ypFuZJk1zcs/bmgeEzI0jpqY=";
};
checkInputs = [
@@ -36,9 +35,6 @@ buildPythonPackage rec {
tzlocal
];
# Project is using asynctest with doesn't work with Python 3.8 and above
# https://github.com/bamthomas/aioimaplib/issues/54
doCheck = pythonOlder "3.8";
pythonImportsCheck = [ "aioimaplib" ];
meta = with lib; {
@@ -0,0 +1,31 @@
{ lib
, buildPythonPackage
, fetchPypi
, aiohttp
, ciso8601
, pandas
}:
buildPythonPackage rec {
pname = "aioinflux";
version = "0.9.0";
src = fetchPypi {
inherit pname version;
sha256 = "1jy5mcg9wdz546s9wdwsgkxhm2ac4dmphd9vz243db39j1m0a3bj";
};
propagatedBuildInputs = [ aiohttp ciso8601 pandas ];
# Tests require InfluxDB server
doCheck = false;
pythonImportsCheck = [ "aioinflux" ];
meta = with lib; {
description = "Asynchronous Python client for InfluxDB";
homepage = "https://github.com/gusutabopb/aioinflux";
license = licenses.mit;
maintainers = with maintainers; [ liamdiprose lopsided98 ];
};
}
@@ -0,0 +1,36 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "aiolip";
version = "1.1.4";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "bdraco";
repo = pname;
rev = version;
sha256 = "1f8mlvbnfcn3sigsmjdpdpgxmnbvcjhfr7lzch61i8sy25dgakji";
};
checkInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.py --replace "'pytest-runner'," ""
'';
pythonImportsCheck = [ "aiolip" ];
meta = with lib; {
description = "Python module for the Lutron Integration Protocol";
homepage = "https://github.com/bdraco/aiolip";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}
@@ -0,0 +1,37 @@
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "aiolyric";
version = "1.0.6";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "timmo001";
repo = pname;
rev = "v${version}";
sha256 = "1lnzsdw6kvgk0762f3vyw4xfzn7qkvsff16q61gm0ryjqg9j8whx";
};
propagatedBuildInputs = [ aiohttp ];
checkInputs = [ pytestCheckHook ];
disabledTests = [
# AssertionError, https://github.com/timmo001/aiolyric/issues/5
"test_location"
];
pythonImportsCheck = [ "aiolyric" ];
meta = with lib; {
description = "Python module for the Honeywell Lyric Platform";
homepage = "https://github.com/timmo001/aiolyric";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}
@@ -1,20 +1,26 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, flit-core
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "aiomultiprocess";
version = "0.8.0";
version = "0.9.0";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "omnilib";
repo = pname;
rev = "v${version}";
sha256 = "0vkj1vgvlv828pi3sn0hjzdy9f0j63gljs2ylibbsaixa7mbkpvy";
sha256 = "sha256-yOP69FXDb2Grmtszx7oa6uiJGUar8su3KwqQPI+xjrw=";
};
nativeBuildInputs = [ flit-core ];
checkInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "aiomultiprocess/tests/*.py" ];
@@ -0,0 +1,51 @@
{ lib
, aiohttp
, aresponses
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytest-aiohttp
, pytest-asyncio
, pytest-cov
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "aionotion";
version = "3.0.1";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "bachya";
repo = pname;
rev = version;
sha256 = "1ydrazg7gcwf53006n1fvxh9zm77by6zi36haq1bmy5skqccyiki";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
aiohttp
];
checkInputs = [
aresponses
pytest-aiohttp
pytest-asyncio
pytest-cov
pytestCheckHook
];
disabledTestPaths = [ "examples" ];
pythonImportsCheck = [ "aionotion" ];
meta = with lib; {
description = "Python library for Notion Home Monitoring";
homepage = "https://github.com/bachya/aionotion";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}
@@ -0,0 +1,38 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, numpy
, pythonOlder
, sqlitedict
, websockets
}:
buildPythonPackage rec {
pname = "aiopylgtv";
version = "0.4.0";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "bendavid";
repo = pname;
rev = version;
sha256 = "0x0xcnlz42arsp53zlq5wyv9pwif1in8j2pv48gh0pkdnz9s86b6";
};
propagatedBuildInputs = [
numpy
sqlitedict
websockets
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "aiopylgtv" ];
meta = with lib; {
description = "Python library to control webOS based LG TV units";
homepage = "https://github.com/bendavid/aiopylgtv";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}
@@ -0,0 +1,54 @@
{ lib
, aiohttp
, aresponses
, async-timeout
, buildPythonPackage
, fetchFromGitHub
, freezegun
, poetry-core
, pytest-asyncio
, pytest-cov
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "aiorecollect";
version = "1.0.3";
format = "pyproject";
src = fetchFromGitHub {
owner = "bachya";
repo = pname;
rev = version;
sha256 = "sha256-S4HL8vJS/dTKsR5egKRSHqZYPClcET5Le06euHPyIkU=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ aiohttp ];
checkInputs = [
aresponses
freezegun
pytest-asyncio
pytest-cov
pytestCheckHook
];
# Ignore the examples as they are prefixed with test_
pytestFlagsArray = [ "--ignore examples/" ];
pythonImportsCheck = [ "aiorecollect" ];
meta = with lib; {
description = "Python library for the Recollect Waste API";
longDescription = ''
aiorecollect is a Python asyncio-based library for the ReCollect
Waste API. It allows users to programmatically retrieve schedules
for waste removal in their area, including trash, recycling, compost
and more.
'';
homepage = "https://github.com/bachya/aiorecollect";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}
@@ -1,22 +1,22 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, pbr
, aiohttp
, ddt
, asynctest
, pytest
, buildPythonPackage
, ddt
, fetchPypi
, pbr
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "aioresponses";
version = "0.7.1";
version = "0.7.2";
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "f65bba2be1e9a4997ee166bc0161a50be0fef7350ad09e6afdb2adccf74dfefe";
sha256 = "sha256-guSV0Ri3SJaqW01H4X7/teLMeD5RCuOVzq3l6Hyr6Jo=";
};
nativeBuildInputs = [
@@ -30,13 +30,16 @@ buildPythonPackage rec {
checkInputs = [
asynctest
ddt
pytest
pytestCheckHook
];
# Skip a test which makes requests to httpbin.org
checkPhase = ''
pytest -k "not (test_address_as_instance_of_url_combined_with_pass_through or test_pass_through_with_origin_params)"
'';
disabledTests = [
# Skip a test which makes requests to httpbin.org
"test_address_as_instance_of_url_combined_with_pass_through"
"test_pass_through_with_origin_params"
];
pythonImportsCheck = [ "aioresponses" ];
meta = {
description = "A helper to mock/fake web requests in python aiohttp package";
@@ -1,13 +1,18 @@
{ lib, fetchPypi, buildPythonPackage, pythonOlder, attrs }:
{ lib
, fetchPypi
, buildPythonPackage
, pythonOlder
, attrs
}:
buildPythonPackage rec {
pname = "aiorpcx";
version = "0.18.4";
version = "0.18.7";
src = fetchPypi {
inherit version;
pname = "aiorpcX";
sha256 = "0jpvrkan6w8bpq017m8si7r9hb1pyw3ip4vr1fl2pmi8ngzc1jdy";
sha256 = "808a9ec9172df11677a0f7b459b69d1a6cf8b19c19da55541fa31fb1afce5ce7";
};
propagatedBuildInputs = [ attrs ];
@@ -17,9 +22,12 @@ buildPythonPackage rec {
# Checks needs internet access
doCheck = false;
meta = {
pythonImportsCheck = [ "aiorpcx" ];
meta = with lib; {
description = "Transport, protocol and framing-independent async RPC client and server implementation";
license = lib.licenses.mit;
homepage = "https://github.com/kyuupichan/aiorpcX";
license = licenses.mit;
maintainers = with maintainers; [ prusnak ];
};
}
@@ -1,25 +1,24 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, isPy27
, pythonOlder
, pygments
, pytest
, pytestcov
, pytestCheckHook
, pytest-cov
, uvloop
}:
buildPythonPackage rec {
pname = "aiorun";
version = "2020.6.1";
version = "2020.12.1";
format = "flit";
disabled = isPy27;
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "cjrh";
repo = pname;
rev = "v${version}";
sha256 = "00mq5ylhhdfdqrh7zdqabf3wy85jrkqvgfb1421ll46fsjim2d14";
sha256 = "sha256-ktc2cmoPNYcsVyKCWs+ivhV5onywFIrdDRBiBKrdiF4=";
};
propagatedBuildInputs = [
@@ -27,8 +26,8 @@ buildPythonPackage rec {
];
checkInputs = [
pytest
pytestcov
pytestCheckHook
pytest-cov
uvloop
];
@@ -37,14 +36,12 @@ buildPythonPackage rec {
export HOME=$TMPDIR
'';
checkPhase = ''
pytest
'';
pythonImportsCheck = [ "aiorun" ];
meta = with lib; {
description = "Boilerplate for asyncio applications";
homepage = "https://github.com/cjrh/aiorun";
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
maintainers = with maintainers; [ costrouc ];
};
}
@@ -7,13 +7,13 @@
buildPythonPackage rec {
pname = "aioshelly";
version = "0.5.4";
version = "0.6.2";
src = fetchFromGitHub {
owner = "home-assistant-libs";
repo = pname;
rev = version;
sha256 = "sha256-EjzWx3wcmTfB3OmN0OB37K6wYKVO3HzGEIf+uihas8k=";
sha256 = "sha256-vlIon+VAHeJiaSIVMEKEpwQC4gXA52vxfEkiQMC9yiw=";
};
propagatedBuildInputs = [
@@ -0,0 +1,46 @@
{ lib
, asysocks
, buildPythonPackage
, colorama
, fetchPypi
, minikerberos
, prompt_toolkit
, pythonOlder
, six
, tqdm
, winacl
, winsspi
}:
buildPythonPackage rec {
pname = "aiosmb";
version = "0.2.41";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-hiLLoFswh0rm5f5TsaX+zyRDkOIyzGXVO0M5J5d/gtQ=";
};
propagatedBuildInputs = [
asysocks
colorama
minikerberos
prompt_toolkit
six
tqdm
winacl
winsspi
];
# Project doesn't have tests
doCheck = false;
pythonImportsCheck = [ "aiosmb" ];
meta = with lib; {
description = "Python SMB library";
homepage = "https://github.com/skelsec/aiosmb";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}
@@ -1,9 +1,9 @@
{ lib, isPy3k, fetchFromGitHub, buildPythonPackage
, atpublic }:
, attrs, atpublic }:
buildPythonPackage rec {
pname = "aiosmtpd";
version = "1.2.1";
version = "1.4.2";
disabled = !isPy3k;
# Release not published to Pypi
@@ -11,11 +11,11 @@ buildPythonPackage rec {
owner = "aio-libs";
repo = pname;
rev = version;
sha256 = "14c30dm6jzxiblnsah53fdv68vqhxwvb9x0aq9bc4vcdas747vr7";
sha256 = "0hbpyns1j1fpvpj7gyb8cz359j7l4hzfqbig74xp4xih59sih0wj";
};
propagatedBuildInputs = [
atpublic
atpublic attrs
];
# Tests need network access
@@ -9,12 +9,12 @@
buildPythonPackage rec {
pname = "aiosqlite";
version = "0.16.0";
version = "0.17.0";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "1a0fjmlvadyzsml10g5p1qif7192k0swy5zwjp8v48y5zc3yy56h";
sha256 = "sha256-8OaswkvEhkFJJnrIL7Rt+zvkRV+Z/iHfgmCcxua67lE=";
};
checkInputs = [
@@ -26,6 +26,8 @@ buildPythonPackage rec {
# tests are not pick-up automatically by the hook
pytestFlagsArray = [ "aiosqlite/tests/*.py" ];
pythonImportsCheck = [ "aiosqlite" ];
meta = with lib; {
description = "Asyncio bridge to the standard sqlite3 module";
homepage = "https://github.com/jreese/aiosqlite";
@@ -9,14 +9,14 @@
buildPythonPackage rec {
pname = "aiostream";
version = "0.4.1";
version = "0.4.2";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "vxgmichel";
repo = pname;
rev = "v${version}";
sha256 = "1wwnjrzkd61k3arxzk7yhg7cc1099bcwr5kz5n91ai6ma5ln139s";
sha256 = "0ss41hzvlnyll5xc5ddxqyqqw4gnd67yyhci25xnb1vpcz0jqsq8";
};
checkInputs = [ pytestCheckHook pytestcov pytest-asyncio ];
@@ -0,0 +1,45 @@
{ lib
, aiohttp
, aioresponses
, buildPythonPackage
, fetchFromGitHub
, expects
, pytest-asyncio
, pytest-mock
, pytestCheckHook
, yarl
}:
buildPythonPackage rec {
pname = "aiosyncthing";
version = "0.5.1";
src = fetchFromGitHub {
owner = "zhulik";
repo = pname;
rev = "v${version}";
sha256 = "0704qbg3jy80vaw3bcvhy988s1qs3fahpfwkja71fy70bh0vc860";
};
propagatedBuildInputs = [
aiohttp
yarl
];
checkInputs = [
aioresponses
expects
pytestCheckHook
pytest-asyncio
pytest-mock
];
pythonImportsCheck = [ "aiosyncthing" ];
meta = with lib; {
description = "Python client for the Syncthing REST API";
homepage = "https://github.com/zhulik/aiosyncthing";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}
@@ -1,29 +1,40 @@
{ lib
, aiohttp
, aioresponses
, aiounittest
, buildPythonPackage
, fetchFromGitHub
, aiohttp
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "airly";
version = "1.0.0";
version = "1.1.0";
src = fetchFromGitHub {
owner = "ak-ambi";
repo = "python-airly";
rev = "v${version}";
sha256 = "0an6nbl0i5pahxm6x4z03s9apzgqrw9zf7srjcs0r3y1ppicb4s6";
sha256 = "sha256-weliT/FYnRX+pzVAyRWFly7lfj2z7P+hpq5SIhyIgmI=";
};
propagatedBuildInputs = [ aiohttp ];
checkInputs = [ pytestCheckHook ];
checkInputs = [
aioresponses
aiounittest
pytestCheckHook
];
preCheck = ''
cd tests
'';
disabledTests = [
"InstallationsLoaderTestCase"
"MeasurementsSessionTestCase"
];
pythonImportsCheck = [ "airly" ];
meta = with lib; {
@@ -0,0 +1,24 @@
{ lib, pythonOlder, buildPythonPackage, fetchPypi, pytestCheckHook }:
buildPythonPackage rec {
pname = "ajsonrpc";
version = "1.1.0";
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "1b5r8975wdnk3qnc1qjnn4lkxmqcir3brbwnxml9ii90dnsw408a";
};
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "ajsonrpc" ];
meta = with lib; {
description = "Async JSON-RPC 2.0 protocol + asyncio server";
homepage = "https://github.com/pavlov99/ajsonrpc";
license = licenses.mit;
maintainers = with maintainers; [ oxzi ];
};
}
@@ -3,14 +3,14 @@
buildPythonPackage rec {
pname = "alarmdecoder";
version = "1.13.9";
version = "1.13.10";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "nutechsoftware";
repo = "alarmdecoder";
rev = version;
sha256 = "0plr2h1qn4ryawbaxf29cfna4wailghhaqy1jcm9kxq6q7b9xqqy";
sha256 = "05581j78181p6mwbfpbkp5irnrzsvps1lslgqrh7xbdcmz5b2nxd";
};
propagatedBuildInputs = [ pyserial pyftdi pyusb pyopenssl ];
@@ -5,11 +5,11 @@
buildPythonPackage rec {
pname = "alembic";
version = "1.4.3";
version = "1.5.8";
src = fetchPypi {
inherit pname version;
sha256 = "5334f32314fb2a56d86b4c4dd1ae34b08c03cae4cb888bc699942104d66bc245";
sha256 = "e27fd67732c97a1c370c33169ef4578cf96436fa0e7dcfaeeef4a917d0737d56";
};
buildInputs = [ pytest pytestcov mock coverage ];
@@ -1,45 +0,0 @@
{ lib, buildPythonPackage, fetchPypi, pythonOlder
, bcrypt, blinker, flask, flask-compress, flask-cors, mohawk, psycopg2, pyjwt, pymongo, python-dateutil, pytz, pyyaml, requests, requests-hawk, sentry-sdk
}:
buildPythonPackage rec {
pname = "alerta-server";
version = "8.3.3";
src = fetchPypi {
inherit pname version;
sha256 = "a2713a31c6e326c774a3ee0328f424f944b951935ff1b893a4a66598d61c5a97";
};
propagatedBuildInputs = [
bcrypt
blinker
flask
flask-compress
flask-cors
mohawk
psycopg2
pyjwt
pymongo
python-dateutil
pytz
pyyaml
requests
requests-hawk
sentry-sdk
];
doCheck = false; # We can't run the tests from Nix, because they rely on the presence of a working MongoDB server
postInstall = ''
wrapProgram $out/bin/alertad --prefix PYTHONPATH : "$PYTHONPATH"
'';
disabled = pythonOlder "3.5";
meta = with lib; {
homepage = "https://alerta.io";
description = "Alerta Monitoring System server";
license = licenses.asl20;
};
}
@@ -1,29 +0,0 @@
{ lib, buildPythonPackage, fetchPypi
, six, click, requests, requests-hawk, pytz, tabulate, pythonOlder
}:
buildPythonPackage rec {
pname = "alerta";
version = "8.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "83c7d751bad0cb9bd7886700da4cd83c5451b2e8eb8d4cc697966e02d6a565f8";
};
propagatedBuildInputs = [ six click requests requests-hawk pytz tabulate ];
doCheck = false;
postInstall = ''
wrapProgram $out/bin/alerta --prefix PYTHONPATH : "$PYTHONPATH"
'';
disabled = pythonOlder "3.5";
meta = with lib; {
homepage = "https://alerta.io";
description = "Alerta Monitoring System command-line interface";
license = licenses.asl20;
};
}
@@ -1,9 +1,7 @@
{ lib, buildPythonPackage, python, fetchFromGitHub, fetchpatch, isPy3k
{ lib, buildPythonPackage, python, fetchFromGitHub, isPy3k
, notmuch, urwid, urwidtrees, twisted, python_magic, configobj, mock, file, gpgme
, service-identity
, gnupg ? null, sphinx, awk ? null, procps ? null, future ? null
, withManpage ? false }:
, service-identity, gnupg, sphinx, gawk, procps, future , withManpage ? false
}:
buildPythonPackage rec {
pname = "alot";
@@ -41,7 +39,7 @@ buildPythonPackage rec {
doCheck = false;
postBuild = lib.optionalString withManpage "make -C docs man";
checkInputs = [ awk future mock gnupg procps ];
checkInputs = [ gawk future mock gnupg procps ];
postInstall = let
completionPython = python.withPackages (ps: [ ps.configobj ]);
@@ -12,7 +12,7 @@
, six
, sphinx
, toolz
, typing
, typing ? null
, vega_datasets
}:
@@ -33,18 +33,20 @@ buildPythonPackage rec {
pandas
six
toolz
jinja2
] ++ lib.optionals (pythonOlder "3.5") [ typing ];
checkInputs = [
glibcLocales
ipython
jinja2
pytest
recommonmark
sphinx
vega_datasets
];
pythonImportsCheck = [ "altair" ];
checkPhase = ''
export LANG=en_US.UTF-8
# histogram_responsive.py attempt network access, and cannot be disabled through pytest flags
@@ -0,0 +1,35 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, aiohttp
, requests
}:
buildPythonPackage rec {
pname = "amiibo-py";
version = "unstable-2021-01-16";
disabled = pythonOlder "3.5.3"; # Older versions are not supported upstream
src = fetchFromGitHub {
owner = "XiehCanCode";
repo = "amiibo.py";
rev = "4766037530f41ad11368240e994888d196783b83";
sha256 = "0ln8ykaws8c5fvzlzccn60mpbdbvxlhkp3nsvs2xqdbsqp270yv2";
};
propagatedBuildInputs = [
aiohttp
requests
];
doCheck = false; # No tests are available upstream
pythonImportsCheck = [ "amiibo" ];
meta = with lib; {
description = "API Wrapper for amiiboapi.com";
homepage = "https://github.com/XiehCanCode/amiibo.py";
license = licenses.mit;
maintainers = [ maintainers.ivar ];
};
}
@@ -0,0 +1,37 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pycrypto
, pythonOlder
, enum34
, python
}:
buildPythonPackage rec {
pname = "android-backup";
version = "0.2.0";
src = fetchFromGitHub {
owner = "bluec0re";
repo = "android-backup-tools";
rev = "v${version}";
sha256 = "0c436hv64ddqrjs77pa7z6spiv49pjflbmgg31p38haj5mzlrqvw";
};
propagatedBuildInputs = [
pycrypto
] ++ lib.optional (pythonOlder "3.4") enum34;
checkPhase = ''
${python.interpreter} -m android_backup.tests
'';
pythonImportsCheck = [ "android_backup" ];
meta = with lib; {
description = "Unpack and repack android backups";
homepage = https://github.com/bluec0re/android-backup-tools;
license = licenses.asl20;
maintainers = with maintainers; [ dotlambda ];
};
}
@@ -1,29 +1,39 @@
{ aiofiles, adb-shell, buildPythonPackage, fetchFromGitHub, isPy3k, lib, mock
, pure-python-adb, python }:
{ lib
, adb-shell
, aiofiles
, buildPythonPackage
, fetchFromGitHub
, isPy3k
, mock
, pure-python-adb
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "androidtv";
version = "0.0.50";
version = "0.0.58";
# pypi does not contain tests, using github sources instead
src = fetchFromGitHub {
owner = "JeffLIrion";
repo = "python-androidtv";
rev = "v${version}";
sha256 = "1iqw40szwgzvhv3fbnx2wwfnw0d3clcwk9vsq1xsn30fjil2vl7b";
sha256 = "sha256-/5sYiYRFa8XJJ4QSxLzJBHaKfAKsGETiVDHerNQ79U8=";
};
propagatedBuildInputs = [ adb-shell pure-python-adb ]
++ lib.optionals (isPy3k) [ aiofiles ];
checkInputs = [ mock ];
checkPhase = ''
${python.interpreter} -m unittest discover -s tests -t .
'';
checkInputs = [
mock
pytestCheckHook
];
pythonImportsCheck = [ "androidtv" ];
meta = with lib; {
description =
"Communicate with an Android TV or Fire TV device via ADB over a network.";
"Communicate with an Android TV or Fire TV device via ADB over a network";
homepage = "https://github.com/JeffLIrion/python-androidtv/";
license = licenses.mit;
maintainers = with maintainers; [ jamiemagee ];
@@ -0,0 +1,94 @@
{ lib
, ailment
, archinfo
, buildPythonPackage
, cachetools
, capstone
, cffi
, claripy
, cle
, cppheaderparser
, dpkt
, fetchFromGitHub
, GitPython
, itanium_demangler
, mulpyplexer
, networkx
, progressbar2
, protobuf
, psutil
, pycparser
, pythonOlder
, pyvex
, sqlalchemy
, rpyc
, sortedcontainers
, unicorn
}:
let
# Only the pinned release in setup.py works properly
unicorn' = unicorn.overridePythonAttrs (old: rec {
pname = "unicorn";
version = "1.0.2-rc4";
src = fetchFromGitHub {
owner = "unicorn-engine";
repo = pname;
rev = version;
sha256 = "17nyccgk7hpc4hab24yn57f1xnmr7kq4px98zbp2bkwcrxny8gwy";
};
});
in
buildPythonPackage rec {
pname = "angr";
version = "9.0.6852";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "sha256-8BN706jqflhKmHVLQ1Y0k3GMScB1Hs5E/zndgq0sXB8=";
};
propagatedBuildInputs = [
ailment
archinfo
cachetools
capstone
cffi
claripy
cle
cppheaderparser
dpkt
GitPython
itanium_demangler
mulpyplexer
networkx
progressbar2
protobuf
psutil
sqlalchemy
pycparser
pyvex
sqlalchemy
rpyc
sortedcontainers
unicorn'
];
# Tests have additional requirements, e.g., pypcode and angr binaries
# cle is executing the tests with the angr binaries
doCheck = false;
# See http://angr.io/api-doc/
pythonImportsCheck = [ "angr" "claripy" "cle" "pyvex" "archinfo" ];
meta = with lib; {
description = "Powerful and user-friendly binary analysis platform";
homepage = "https://angr.io/";
license = with licenses; [ bsd2 ];
maintainers = with maintainers; [ fab ];
};
}
@@ -0,0 +1,37 @@
{ lib
, angr
, buildPythonPackage
, fetchFromGitHub
, progressbar
, pythonOlder
}:
buildPythonPackage rec {
pname = "angrop";
version = "9.0.6852";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "angr";
repo = pname;
rev = "v${version}";
sha256 = "sha256-uOf2d3TbTdLobqfdOUSVQ/mqyD3TaYPlPCNFsqcPrXo=";
};
propagatedBuildInputs = [
angr
progressbar
];
# Tests have additional requirements, e.g., angr binaries
# cle is executing the tests with the angr binaries already and is a requirement of angr
doCheck = false;
pythonImportsCheck = [ "angrop" ];
meta = with lib; {
description = "ROP gadget finder and chain builder";
homepage = "https://github.com/angr/angrop";
license = with licenses; [ bsd2 ];
maintainers = with maintainers; [ fab ];
};
}
@@ -3,7 +3,7 @@
buildPythonPackage rec {
pname = "aniso8601";
version = "8.1.0";
version = "9.0.1";
meta = with lib; {
description = "Parses ISO 8601 strings.";
@@ -17,6 +17,6 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "246bf8d3611527030889e6df970878969d3a2f760ba3eb694fa1fb10e6ce53f9";
sha256 = "72e3117667eedf66951bb2d93f4296a56b94b078a8a95905a052611fb3f1b973";
};
}
@@ -1,55 +1,78 @@
{ lib
, stdenv
, fetchPypi
, buildPythonPackage
, isPy27
, ansible
, pyyaml
, setuptools_scm
, ruamel_yaml
, ruamel-yaml
, rich
, pytestCheckHook
, pytestcov
, pytest_xdist
, pytest-xdist
, git
, wcmatch
, enrich
, python
}:
buildPythonPackage rec {
pname = "ansible-lint";
version = "4.3.7";
# pip is not able to import version info on raumel.yaml
version = "5.0.2";
disabled = isPy27;
format = "pyproject";
src = fetchPypi {
inherit pname version;
sha256 = "0kwwv9dv9rgsqvp15r2vma7hii9lkkqn0n2irvp5h32cbhzzq4hh";
sha256 = "sha256-vgt/KqNozTPaON/I19SybBZuo7bbl3Duq5dTBTMlj44=";
};
format = "pyproject";
nativeBuildInputs = [ setuptools_scm ];
propagatedBuildInputs = [ pyyaml ansible ruamel_yaml rich ];
checkInputs = [ pytestCheckHook pytestcov pytest_xdist git ];
postPatch = ''
patchShebangs bin/ansible-lint
substituteInPlace setup.cfg \
--replace "setuptools_scm_git_archive>=1.0" ""
substituteInPlace src/ansiblelint/file_utils.py \
--replace 'raise RuntimeError("Unable to determine file type for %s" % pathex)' 'return "playbook"'
'';
# give a hint to setuptools_scm on package version
preBuild = ''
export SETUPTOOLS_SCM_PRETEND_VERSION="v${version}"
buildInputs = [ python ];
propagatedBuildInputs = [ ansible enrich pyyaml rich ruamel-yaml wcmatch ];
checkInputs = [ pytestCheckHook pytest-xdist git ];
preCheck = ''
# ansible wants to write to $HOME and crashes if it can't
export HOME=$(mktemp -d)
export PATH=$PATH:${lib.makeBinPath [ ansible ]}
# create a working ansible-lint executable
export PATH=$PATH:$PWD/src/ansiblelint
ln -rs src/ansiblelint/__main__.py src/ansiblelint/ansible-lint
patchShebangs src/ansiblelint/__main__.py
'';
checkPhase = ''
pytest -k 'not test_run_playbook_github and not test_run_single_role_path_no_trailing_slash_script'
'';
disabledTests = [
# requires network
"test_prerun_reqs_v1"
"test_prerun_reqs_v2"
# Assertion error with negative numbers; maybe requieres an ansible update?
"test_negative"
"test_example"
"test_playbook"
"test_included_tasks"
"test_long_line"
"test_get_yaml_files_umlaut"
"test_run_inside_role_dir"
"test_role_handler_positive"
];
# fails to run tests due to issues with temporary directory
doCheck = !stdenv.isDarwin;
makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ ansible ]}" ];
meta = with lib; {
homepage = "https://github.com/ansible/ansible-lint";
homepage = "https://github.com/ansible-community/ansible-lint";
description = "Best practices checker for Ansible";
license = licenses.mit;
maintainers = [ maintainers.sengaya ];
maintainers = with maintainers; [ sengaya SuperSandro2000 ];
};
}
@@ -14,11 +14,11 @@
buildPythonPackage rec {
pname = "ansible-runner";
version = "1.4.6";
version = "1.4.7";
src = fetchPypi {
inherit pname version;
sha256 = "53605de32f7d3d3442a6deb8937bf1d9c1f91c785e3f71003d22c3e63f85c71d";
sha256 = "1bb56f9061c3238d89ec8871bc842f5b8d0e868f892347e8455c98d5b6fa58a1";
};
checkInputs = [ pytest mock ];
@@ -1,11 +1,10 @@
{ lib
, buildPythonPackage
, fetchPypi
, tox
, pytest
, ansicolors
, buildPythonPackage
, coverage
, pytestcov
, fetchPypi
, pytest-cov
, pytestCheckHook
, textwrap3
}:
@@ -20,20 +19,15 @@ buildPythonPackage rec {
};
checkInputs = [
tox
pytest
ansicolors
coverage
pytestcov
pytest-cov
pytestCheckHook
];
propagatedBuildInputs = [
textwrap3
];
propagatedBuildInputs = [ textwrap3 ];
checkPhase = ''
pytest
'';
pythonImportsCheck = [ "ansiwrap" ];
meta = with lib; {
description = "Textwrap, but savvy to ANSI colors and styles";
@@ -16,7 +16,7 @@
buildPythonPackage rec {
pname = "anyio";
version = "2.0.2";
version = "2.2.0";
format = "pyproject";
disabled = pythonOlder "3.7";
@@ -24,7 +24,7 @@ buildPythonPackage rec {
owner = "agronholm";
repo = pname;
rev = version;
sha256 = "06nazfrm2sclp3lpgsn9wl8vmqxvx36s3gr2gnqz3zhjpf3glkxv";
sha256 = "0ram1niv2lg9qj53zssph104a4kxl8f94ilfn6mibn034m3ikcc8";
};
propagatedBuildInputs = [
@@ -1,7 +1,6 @@
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, fetchFromGitHub
, fetchpatch
, alembic
@@ -47,10 +46,7 @@
, tzlocal
, unicodecsv
, zope_deprecation
, enum34
, typing
, nose
, python
, pythonOlder
, pythonAtLeast
}:
@@ -143,11 +139,9 @@ buildPythonPackage rec {
--replace "flask-appbuilder>=1.12.5, <2.0.0" "flask-appbuilder" \
--replace "flask-admin==1.5.3" "flask-admin" \
--replace "flask-login>=0.3, <0.5" "flask-login" \
--replace "pendulum==1.4.4" "pendulum" \
--replace "cached_property~=1.5" "cached_property" \
--replace "dill>=0.2.2, <0.3" "dill" \
--replace "configparser>=3.5.0, <3.6.0" "configparser" \
--replace "jinja2>=2.10.1, <2.11.0" "jinja2" \
--replace "colorlog==4.0.2" "colorlog" \
--replace "funcsigs==1.0.0" "funcsigs" \
--replace "flask-swagger==0.2.13" "flask-swagger" \
@@ -11,11 +11,11 @@
buildPythonPackage rec {
pname = "apispec";
version = "4.0.0";
version = "4.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "360e28e5e84a4d7023b16de2b897327fe3da63ddc8e01f9165b9113b7fe1c48a";
sha256 = "5ec0fe72f1422a1198973fcbb48d0eb5c7390f4b0fbe55474fce999ad6826a9b";
};
checkInputs = [
@@ -5,11 +5,11 @@
buildPythonPackage rec {
pname = "appnope";
version = "0.1.0";
version = "0.1.2";
src = fetchPypi {
inherit pname version;
sha256 = "8b995ffe925347a2138d7ac0fe77155e4311a0ea6d6da4f5128fe4b3cbe5ed71";
sha256 = "dd83cd4b5b460958838f6eb3000c660b1f9caf2a5b1de4264e941512f603258a";
};
meta = {
@@ -1,21 +1,21 @@
{ lib, buildPythonPackage, fetchPypi, installShellFiles
, Babel, requests, requests_oauthlib, six, click, markdown, pyyaml
, Babel, requests, requests_oauthlib, six, click, markdown, pyyaml, cryptography
, pytestrunner, coverage, flake8, mock, pytestCheckHook, pytestcov, tox, gntp, sleekxmpp
}:
buildPythonPackage rec {
pname = "apprise";
version = "0.9.0";
version = "0.9.1";
src = fetchPypi {
inherit pname version;
sha256 = "bab3563bc1e0c64938c4c7700112797bd99f20eb5d4a3e6038338bc8f060e153";
sha256 = "sha256-FW5gt35yoXVr2+hiGBDJ/5jFFfIpn2Z9sDN8acoO4FI=";
};
nativeBuildInputs = [ Babel installShellFiles ];
propagatedBuildInputs = [
requests requests_oauthlib six click markdown pyyaml
cryptography requests requests_oauthlib six click markdown pyyaml
];
checkInputs = [
@@ -28,6 +28,8 @@ buildPythonPackage rec {
installManPage packaging/man/apprise.1
'';
pythonImportsCheck = [ "apprise" ];
meta = with lib; {
homepage = "https://github.com/caronc/apprise";
description = "Push Notifications that work with just about every platform!";
@@ -1,34 +1,44 @@
{ lib, fetchPypi, buildPythonPackage, fetchpatch
, configobj, six, traitsui
, nose, tables, pandas
{ lib, fetchPypi, buildPythonPackage
, fetchpatch, configobj, six, traitsui
, pytestCheckHook, tables, pandas
, pythonOlder, importlib-resources
}:
buildPythonPackage rec {
pname = "apptools";
version = "4.5.0";
version = "5.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "10h52ibhr2aw076pivqxiajr9rpcr1mancg6xlpxzckcm3if02i6";
sha256 = "12x5lcs1cllpybz7f0i1lcwvmqsaa5n818wb2165lj049wqxx4yh";
};
# PyTables issue; should be merged in next post-4.5.0 release (#117)
patches = [ (fetchpatch {
url = "https://github.com/enthought/apptools/commit/3734289d1a0ebd8513fa67f75288add31ed0113c.patch";
sha256 = "001012q1ib5cbib3nq1alh9ckzj588bfrywr8brkd1f6y1pgvngk";
patches = [
# python39: importlib_resources -> importlib.resources. This patch will be included
# in the next release after 5.1.0.
(fetchpatch {
url = "https://github.com/enthought/apptools/commit/0ae4f52f19a8c0ca9d7926e17c7de949097f24b4.patch";
sha256 = "165aiwjisr5c3lasg7xblcha7y1y5bq23vi3g9gc80c24bzwcbsw";
})
];
propagatedBuildInputs = [ configobj six traitsui ];
checkInputs = [
nose
tables
pandas
propagatedBuildInputs = [
configobj
six
traitsui
] ++ lib.optionals (pythonOlder "3.9") [
importlib-resources
];
doCheck = true;
checkPhase = "HOME=$TMP nosetests";
checkInputs = [
tables
pandas
pytestCheckHook
];
preCheck = ''
export HOME=$TMP
'';
meta = with lib; {
description = "Set of packages that Enthought has found useful in creating a number of applications.";
@@ -0,0 +1,40 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, pyserial
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "aqualogic";
version = "2.6";
src = fetchFromGitHub {
owner = "swilson";
repo = pname;
rev = version;
sha256 = "sha256-dAC/0OjvrC8J/5pu5vcOKV/WqgkAlz0LuFl0up6FQRM=";
};
patches = [
(fetchpatch {
name = "allow-iobase-objects.patch";
url = "https://github.com/swilson/aqualogic/commit/185fe25a86c82c497a55c78914b55ed39f5ca339.patch";
sha256 = "072jrrsqv86bn3skibjc57111jlpm8pq2503997fl3h4v6ziwdxg";
})
];
propagatedBuildInputs = [ pyserial ];
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "aqualogic" ];
meta = with lib; {
description = "Python library to interface with Hayward/Goldline AquaLogic/ProLogic pool controllers";
homepage = "https://github.com/swilson/aqualogic";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}
@@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "arabic_reshaper";
version = "2.1.1";
version = "2.1.3";
src = fetchPypi {
inherit pname version;
sha256 = "zzGPpdUdLSJPpJv2vbu0aE9r0sBot1z84OYH+JrBmdw=";
sha256 = "a236fc6e9dde2a61cc6a5ca962b522e42694e1bb2a2d86894ed7a4eba4ce1890";
};
propagatedBuildInputs = [ future ]
@@ -7,13 +7,13 @@
buildPythonPackage rec {
pname = "archinfo";
version = "9.0.5610";
version = "9.0.6852";
src = fetchFromGitHub {
owner = "angr";
repo = pname;
rev = "v${version}";
sha256 = "sha256-YlqCRLx8mqHXMKPCWqcGvHxRBGOxbwMZWPEDX/jEDdI=";
sha256 = "sha256-NlL/uRI568HYkt8T2kuzyHNXpWybOLbFduE+1dzm4Qo=";
};
checkInputs = [
@@ -11,7 +11,7 @@
buildPythonPackage rec {
pname = "aresponses";
version = "2.1.2";
version = "2.1.4";
disabled = !isPy3k;
@@ -19,7 +19,7 @@ buildPythonPackage rec {
owner = "CircleUp";
repo = pname;
rev = version;
sha256 = "007wrk4wdy97a81imgzxd6sm5dly9v7abmxh9fyfi0vp1p7s75bw";
sha256 = "sha256-crMiMZ2IDuYDFt8Bixg3NRhlUa2tqmfzd7ZeHM+2Iu4=";
};
propagatedBuildInputs = [
@@ -12,12 +12,12 @@
buildPythonPackage rec {
pname = "argon2_cffi";
version = "19.2.0";
version = "20.1.0";
src = fetchPypi {
pname = "argon2-cffi";
inherit version;
sha256 = "ffaa623eea77b497ffbdd1a51e941b33d3bf552c60f14dbee274c4070677bda3";
sha256 = "0zgr4mnnm0p4i99023safb0qb8cgvl202nly1rvylk2b7qnrn0nq";
};
propagatedBuildInputs = [ cffi six ] ++ lib.optional (!isPy3k) enum34;
@@ -4,12 +4,12 @@
buildPythonPackage rec {
pname = "arrayqueues";
version = "1.2.0b0";
version = "1.3.1";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "1gvrxb2rw0dk469wq5azylar7hhanfp07gl5mc6ajdbgz9gsd6ln";
sha256 = "a955df768e39d459de28c7ea10ee02f67b1c70996cfa229846ab98df77a6fb69";
};
propagatedBuildInputs = [
@@ -0,0 +1,41 @@
{ lib, buildPythonPackage, fetchPypi, pythonOlder
, simplejson, typing-extensions, python-dateutil, pytz, pytest-mock, sphinx
, dateparser, pytestcov, pytestCheckHook
}:
buildPythonPackage rec {
pname = "arrow";
version = "1.0.3";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "0793badh4hgbk2c5g70hmbl7n3d4g5d87bcflld0w9rjwy59r71r";
};
propagatedBuildInputs = [ python-dateutil ]
++ lib.optionals (!pythonOlder "3.8") [ typing-extensions ];
checkInputs = [
dateparser
pytestCheckHook
pytestcov
pytest-mock
pytz
simplejson
sphinx
];
# ParserError: Could not parse timezone expression "America/Nuuk"
disabledTests = [
"test_parse_tz_name_zzz"
];
meta = with lib; {
description = "Python library for date manipulation";
homepage = "https://github.com/crsmithdev/arrow";
license = licenses.asl20;
maintainers = with maintainers; [ thoughtpolice oxzi ];
};
}
@@ -0,0 +1,40 @@
{ lib, buildPythonPackage, fetchPypi, isPy27
, nose, chai, simplejson, backports_functools_lru_cache
, python-dateutil, pytz, pytest-mock, sphinx, dateparser, pytestcov
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "arrow";
version = "0.17.0";
src = fetchPypi {
inherit pname version;
sha256 = "ff08d10cda1d36c68657d6ad20d74fbea493d980f8b2d45344e00d6ed2bf6ed4";
};
propagatedBuildInputs = [ python-dateutil ]
++ lib.optionals isPy27 [ backports_functools_lru_cache ];
checkInputs = [
dateparser
pytestCheckHook
pytestcov
pytest-mock
pytz
simplejson
sphinx
];
# ParserError: Could not parse timezone expression "America/Nuuk"
disabledTests = [
"test_parse_tz_name_zzz"
];
meta = with lib; {
description = "Python library for date manipulation";
homepage = "https://github.com/crsmithdev/arrow";
license = licenses.asl20;
maintainers = with maintainers; [ thoughtpolice ];
};
}
@@ -6,11 +6,11 @@
buildPythonPackage rec {
pname = "arrow";
version = "0.17.0";
version = "1.0.3";
src = fetchPypi {
inherit pname version;
sha256 = "ff08d10cda1d36c68657d6ad20d74fbea493d980f8b2d45344e00d6ed2bf6ed4";
sha256 = "399c9c8ae732270e1aa58ead835a79a40d7be8aa109c579898eb41029b5a231d";
};
propagatedBuildInputs = [ python-dateutil ]
@@ -22,13 +22,13 @@
buildPythonPackage rec {
pname = "arviz";
version = "0.10.0";
version = "0.11.2";
src = fetchFromGitHub {
owner = "arviz-devs";
repo = "arviz";
rev = "v${version}";
sha256 = "1cnj972knkvi084cfcpc12lv0wxm8xm9clfd55r3hvv42g1ms5d9";
sha256 = "0npwrpy262y6zqd0znz4w7ikfdyz4kc4gikmkpj6h1j6vxggrfaa";
};
propagatedBuildInputs = [
@@ -1,48 +1,51 @@
{ lib
, astropy
, buildPythonPackage
, fetchPypi
, pytest-astropy
, semantic-version
, pyyaml
, jsonschema
, six
, numpy
, isPy27
, astropy
, setuptools_scm
, setuptools
, packaging
, pytest-astropy
, pytestCheckHook
, pythonOlder
, pyyaml
, semantic-version
, setuptools-scm
}:
buildPythonPackage rec {
pname = "asdf";
version = "2.7.1";
disabled = isPy27;
version = "2.7.3";
disabled = pythonOlder "3.6";
format = "pyproject";
src = fetchPypi {
inherit pname version;
sha256 = "4ba2e31cb24b974a10dfae3edee23db2e6bea2d00608604d062366aa3af6e81a";
sha256 = "11dyr295wn5m2pcynlwj7kgw9xr66msfvwn1m6a5vv13vzj19spp";
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [
jsonschema
numpy
packaging
pyyaml
semantic-version
];
checkInputs = [
pytest-astropy
astropy
pytestCheckHook
];
propagatedBuildInputs = [
semantic-version
pyyaml
jsonschema
six
numpy
setuptools_scm
setuptools
];
checkPhase = ''
PY_IGNORE_IMPORTMISMATCH=1 pytest
preCheck = ''
export PY_IGNORE_IMPORTMISMATCH=1
'';
pythonImportsCheck = [ "asdf" ];
meta = with lib; {
description = "Python tools to handle ASDF files";
homepage = "https://github.com/spacetelescope/asdf";
@@ -12,12 +12,12 @@
buildPythonPackage rec {
pname = "ase";
version = "3.20.1";
version = "3.21.1";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "72c81f21b6adb907595fce8d883c0231301cbd8e9f6e5ce8e98bab927054daca";
sha256 = "78b01d88529d5f604e76bc64be102d48f058ca50faad72ac740d717545711c7b";
};
propagatedBuildInputs = [ numpy scipy matplotlib flask pillow psycopg2 ];
@@ -9,7 +9,7 @@
}:
buildPythonPackage rec {
version = "3.3.1";
version = "3.3.4";
pname = "asgiref";
disabled = pythonOlder "3.5";
@@ -18,7 +18,7 @@ buildPythonPackage rec {
owner = "django";
repo = pname;
rev = version;
sha256 = "00r4l9x425wkbac6b6c2ksm2yjinrvvdf0ajizrzq32h0jg82016";
sha256 = "1rr76252l6p12yxc0q4k9wigg1jz8nsqga9c0nixy9q77zhvh9n2";
};
propagatedBuildInputs = [ async-timeout ];
@@ -0,0 +1,31 @@
{ lib, buildPythonPackage, fetchPypi, isPy27, aspell, aspellDicts, python }:
buildPythonPackage rec {
pname = "aspell-python";
version = "1.15";
disabled = isPy27;
src = fetchPypi {
inherit version;
pname = "aspell-python-py3";
extension = "tar.bz2";
sha256 = "13dk3jrvqmfvf2w9b8afj37d8bh32kcx295lyn3z7r8qch792hi0";
};
buildInputs = [ aspell ];
checkPhase = ''
export ASPELL_CONF="dict-dir ${aspellDicts.en}/lib/aspell"
export HOME=$(mktemp -d)
${python.interpreter} test/unittests.py
'';
pythonImportsCheck = [ "aspell" ];
meta = with lib; {
description = "Python wrapper for aspell (C extension and python version)";
homepage = "https://github.com/WojciechMula/aspell-python";
license = licenses.bsd3;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}

Some files were not shown because too many files have changed in this diff Show More