Merge pull request #191333 from NixOS/python-updates

This commit is contained in:
Martin Weinelt 2022-09-19 18:23:07 +02:00 committed by GitHub
commit f1dcc2356b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
401 changed files with 2121 additions and 1059 deletions

View File

@ -120,7 +120,7 @@ in python.pkgs.buildPythonApplication rec {
pypdf2
pyserial
python-dateutil
ldap
python-ldap
python-stdnum
pytz
pyusb

View File

@ -23,6 +23,7 @@ let
in buildPythonApplication rec {
pname = "mypaint";
version = "2.0.1";
format = "other";
src = fetchFromGitHub {
owner = "mypaint";
@ -48,6 +49,7 @@ in buildPythonApplication rec {
wrapGAppsHook
gobject-introspection # for setup hook
hicolor-icon-theme # fór setup hook
python3.pkgs.setuptools
];
buildInputs = [

View File

@ -1,4 +1,4 @@
{ lib, buildPythonApplication, fetchFromGitHub, configargparse }:
{ lib, buildPythonApplication, fetchFromGitHub, configargparse, setuptools }:
buildPythonApplication rec {
pname = "rofi-rbw";
@ -12,6 +12,10 @@ buildPythonApplication rec {
hash = "sha256-YDL0pMl3BX59kzjuykn0lQHu2RMvPhsBrlSiqdcZAXs=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [ configargparse ];
pythonImportsCheck = [ "rofi_rbw" ];

View File

@ -1,6 +1,7 @@
{ buildPythonApplication
, fetchFromGitHub
, lib
, python3
, waylandSupport ? true
, x11Support ? true
@ -25,6 +26,10 @@ buildPythonApplication rec {
sha256 = "sha256-6W/59DjxrgejHSkNxpruDAws812Vjyf+GePDPbXzVbc=";
};
nativeBuildInputs = [
python3.pkgs.setuptools
];
# `rofi` and the `waylandSupport` and `x11Support` dependencies
# contain binaries needed at runtime.
propagatedBuildInputs = with lib; [ configargparse rofi ]

View File

@ -13,6 +13,7 @@ in
python3Packages.buildPythonApplication rec {
pname = "tremc";
version = "0.9.2";
format = "other";
src = fetchFromGitHub {
owner = "tremc";

View File

@ -32,7 +32,7 @@ let
pythonDeps = with python.pkgs; [
flask flask_assets flask_login flask-sqlalchemy flask_migrate flask-seasurf flask_mail flask-session flask-sslify
mysqlclient psycopg2 sqlalchemy
cffi configobj cryptography bcrypt requests ldap pyotp qrcode dnspython
cffi configobj cryptography bcrypt requests python-ldap pyotp qrcode dnspython
gunicorn python3-saml pytz cssmin rjsmin authlib bravado-core
lima pytimeparse pyyaml jinja2 itsdangerous werkzeug
];

View File

@ -46,6 +46,10 @@ let
sha256 = "0fi7jd5hlx8cnv1m97kv9hc4ih4l8v15wzkqwsp73is4n0qazy0m";
};
});
eth-keys = super.eth-keys.overridePythonAttrs (_: {
doCheck = false;
});
};
};

View File

@ -2,6 +2,7 @@
python3Packages.buildPythonApplication rec {
inherit (easycrypt) src version;
format = "other";
pname = "easycrypt-runtest";

View File

@ -22,7 +22,7 @@ python3Packages.buildPythonApplication rec {
sha256 = "sha256-TsJr2Riygz/DZrn6UZMPvq1tTfvl3dFEZZNq2wVj1Nw=";
};
nativeBuildInputs = [ installShellFiles asciidoc xmlto docbook_xsl docbook_xml_dtd_45 ];
nativeBuildInputs = [ installShellFiles asciidoc xmlto docbook_xsl docbook_xml_dtd_45 python3Packages.setuptools ];
format = "other";

View File

@ -3,6 +3,7 @@
python3Packages.buildPythonApplication rec {
pname = "i3-wk-switch";
version = "2020-03-18";
format = "other";
src = fetchFromGitHub {
owner = "tmfink";

View File

@ -21,7 +21,8 @@ with python3.pkgs; buildPythonApplication rec {
--subst-var-by SPDX_LICENSE_LIST_DATA '${spdx-license-list-data.json}'
substituteInPlace setup.py \
--replace 'uvicorn==%s" % ("0.17.*"' 'uvicorn==%s" % ("0.18.*"'
--replace 'uvicorn==%s" % ("0.17.*"' 'uvicorn==%s" % ("0.18.*"' \
--replace 'wsproto==' 'wsproto>='
'';
propagatedBuildInputs = [

View File

@ -1,11 +0,0 @@
{ callPackage, fetchFromGitHub, ... } @ args:
callPackage ./generic.nix (args // rec {
version = "1.3.3";
src = fetchFromGitHub {
owner = "protobuf-c";
repo = "protobuf-c";
rev = "v${version}";
sha256 = "13948amsjj9xpa4yl6amlyk3ksr96bbd4ngshh2yzflwcslhg6gv";
};
})

View File

@ -1,15 +1,20 @@
{ lib, stdenv, src, version
{ lib, stdenv, fetchFromGitHub
, autoreconfHook, pkg-config, protobuf, zlib
, ...
}:
stdenv.mkDerivation {
stdenv.mkDerivation rec {
pname = "protobuf-c";
inherit version;
version = "1.4.1";
inherit src;
src = fetchFromGitHub {
owner = "protobuf-c";
repo = "protobuf-c";
rev = "refs/tags/v${version}";
hash = "sha256-TJCLzxozuZ8ynrBQ2lKyk03N+QA/lbOwywUjDUdTlbM=";
};
nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [ protobuf zlib ];
meta = with lib; {
@ -17,5 +22,6 @@ stdenv.mkDerivation {
description = "C bindings for Google's Protocol Buffers";
license = licenses.bsd2;
platforms = platforms.all;
maintainers = with maintainers; [ ];
};
}

View File

@ -24,12 +24,12 @@ let
in buildPythonPackage rec {
pname = "cython";
version = "0.29.30";
version = "0.29.32";
src = fetchPypi {
pname = "Cython";
inherit version;
sha256 = "sha256-IjW2Laj+b6i5lCLI5YPy+5XhQ4Z9M3tcdeS5oahl+eM=";
hash = "sha256-hzPPR1i3kwTypOOev6xekjQbzke8zrJsElQ5iy+MGvc=";
};
nativeBuildInputs = [

View File

@ -8,11 +8,11 @@
buildPythonPackage rec {
pname = "absl-py";
version = "1.1.0";
version = "1.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-OqOfiYMpwhVv9SXfppznCeQtd6qxi/SRdxnW8mCqagg=";
sha256 = "sha256-9WiAmTjEmrvaiYJiI8mStjCv0jxjgWCteEDP40dxDZc=";
};
propagatedBuildInputs = [

View File

@ -11,7 +11,7 @@
buildPythonPackage rec {
pname = "aeppl";
version = "0.0.33";
version = "0.0.35";
format = "setuptools";
disabled = pythonOlder "3.7";
@ -20,7 +20,7 @@ buildPythonPackage rec {
owner = "aesara-devs";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-P4QgEt/QfIeCx/wpaCncXtjrDM2uiOIuObxPlTtn1CY=";
hash = "sha256-HUcLa/9fTUBJYszo1SiG08t7DQiNSd8EsINkJpAeLsY=";
};
propagatedBuildInputs = [

View File

@ -21,7 +21,7 @@
buildPythonPackage rec {
pname = "aesara";
version = "2.7.9";
version = "2.8.4";
format = "setuptools";
disabled = pythonOlder "3.7";
@ -30,7 +30,7 @@ buildPythonPackage rec {
owner = "aesara-devs";
repo = "aesara";
rev = "refs/tags/rel-${version}";
hash = "sha256-s7qqFSY4teL2uiGg6CkpPtr7lNNAj61nCn83Zr7/JaQ=";
hash = "sha256-Mt1IweQkPqxv+ynezdFHTJXU/oTOwhPkY49GzFJpPaM=";
};
nativeBuildInputs = [

View File

@ -14,13 +14,13 @@
buildPythonPackage rec {
pname = "afdko";
version = "3.9.0";
version = "3.9.1";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "1fjsaz6bp028fbmry6fzfcih78mdzycqmky1wsz5y0bg4kfk4shh";
sha256 = "sha256-AtRNaZzn9BoNIjvKhS7rsYVfHw26JKKUFqO/6TcBIkw=";
};
format = "pyproject";

View File

@ -3,6 +3,7 @@
, fetchFromGitHub
, pythonOlder
, pyvex
, setuptools
}:
buildPythonPackage rec {
@ -19,6 +20,10 @@ buildPythonPackage rec {
hash = "sha256-CXJ9UVTrJzXumDJ6wghDbxVfZo9ZC67qBpz8B5D0DLo=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
pyvex
];

View File

@ -10,12 +10,12 @@
buildPythonPackage rec {
pname = "aiobotocore";
version = "2.3.4";
version = "2.4.0";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-ZVTr6ldk9m9L5USk/KoJU+6A5gDde9gYukiT1yvxK/s=";
sha256 = "sha256-+f4GmMxJeGG9tUzRYWHIBAMfdYralIDDVUDyDAwHg4U=";
};
# relax version constraints: aiobotocore works with newer botocore versions

View File

@ -24,6 +24,11 @@ buildPythonPackage rec {
sha256 = "sha256-ZaNrSkRH9pFhzZncCs37k1M0w5svPfrY0WxePUnUlms=";
};
postPatch = ''
substituteInPlace requirements.txt \
--replace "protobuf>=3.12.2,<4.0" "protobuf>=3.12.2"
'';
propagatedBuildInputs = [
noiseprotocol
protobuf

View File

@ -25,6 +25,14 @@ buildPythonPackage rec {
hash = "sha256-5gKANZtDhIoyfyLdS15JDWTxHBFkaHDUlbVVhRs7MSE=";
};
postPatch = ''
# Upstream is releasing with the help of a CI to PyPI, GitHub releases
# are not in their focus
substituteInPlace pyproject.toml \
--replace 'version = "0"' 'version = "${version}"' \
--replace 'backoff = "^1.10.0"' 'backoff = "*"'
'';
nativeBuildInputs = [
poetry-core
];
@ -41,12 +49,9 @@ buildPythonPackage rec {
pytestCheckHook
];
postPatch = ''
# Upstream is releasing with the help of a CI to PyPI, GitHub releases
# are not in their focus
substituteInPlace pyproject.toml \
--replace 'version = "0"' 'version = "${version}"'
'';
pytestFlagsArray = [
"--asyncio-mode=legacy"
];
pythonImportsCheck = [
"aiogithubapi"

View File

@ -7,6 +7,7 @@
, pbr
, pytestCheckHook
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
@ -27,6 +28,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [
aiohttp
setuptools
];
checkInputs = [

View File

@ -7,13 +7,13 @@
buildPythonPackage rec {
pname = "aioserial";
version = "1.3.0";
version = "1.3.1";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "080j3ws3j2arj2f16mzqn1qliy0bzmb0gzk5jvm5ldkhsf1s061h";
sha256 = "sha256-cCvwOw64S47y2NrFy5JeHmhdzpj3exJVabxv0rO1gig=";
};
propagatedBuildInputs = [

View File

@ -7,14 +7,14 @@
buildPythonPackage rec {
pname = "aliyun-python-sdk-cdn";
version = "3.7.2";
version = "3.7.4";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-wbVkoNu9ffMpuivUGg+PAya099xMbU0Ehvl0++ud+WE=";
hash = "sha256-7ZDhsu5XDE7hDVaG4RdEWcKfVrC2tPwLPdGB+uDXRpA=";
};
propagatedBuildInputs = [

View File

@ -7,14 +7,14 @@
buildPythonPackage rec {
pname = "aliyun-python-sdk-iot";
version = "8.42.0";
version = "8.43.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-pp1objaT0Galxz91V1OoMfogYQyZ1lZC6XGFd4wSTq8=";
hash = "sha256-KYmxcm5523MeHhMD5tdlowezhgXSolywHUBOlVkjsp0=";
};
propagatedBuildInputs = [

View File

@ -9,7 +9,7 @@
buildPythonPackage rec {
pname = "amazon-ion";
version = "0.9.2";
version = "0.9.3";
format = "setuptools";
disabled = pythonOlder "3.7";
@ -20,7 +20,7 @@ buildPythonPackage rec {
repo = "ion-python";
rev = "v${version}";
fetchSubmodules = true;
hash = "sha256-BLlKxm63KsmMFajS4uJne/LPNXboOfy4uVm8HqO9Wfo=";
hash = "sha256-FLwzHcge+vLcRY4gOzrxS3kWlprCkRXX5KeGOoTJDSw=";
};
postPatch = ''
@ -37,6 +37,11 @@ buildPythonPackage rec {
pytestCheckHook
];
disabledTests = [
# ValueError: Exceeds the limit (4300) for integer string conversion
"test_roundtrips"
];
pythonImportsCheck = [
"amazon.ion"
];

View File

@ -11,6 +11,7 @@
, pytestCheckHook
, pythonOlder
, pyyaml
, setuptools
, transitions
, websockets
}:
@ -29,6 +30,11 @@ buildPythonPackage rec {
hash = "sha256-8T1XhBSOiArlUQbQ41LsUogDgOurLhf+M8mjIrrAC4s=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'transitions = "^0.8.0"' 'transitions = "*"'
'';
nativeBuildInputs = [
poetry-core
];
@ -37,6 +43,7 @@ buildPythonPackage rec {
docopt
passlib
pyyaml
setuptools
transitions
websockets
];

View File

@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, pytestCheckHook
}:
@ -16,6 +17,10 @@ buildPythonPackage rec {
hash = "sha256-2gu2Dba3LOjMhbCCZrBqzlOor5KqDYThhe8OP8J3O2M=";
};
nativeBuildInputs = [
setuptools
];
checkInputs = [
pytestCheckHook
];

View File

@ -17,7 +17,7 @@
buildPythonPackage rec {
pname = "ansible-doctor";
version = "1.4.1";
version = "1.4.4";
format = "pyproject";
disabled = pythonOlder "3.7";
@ -26,7 +26,7 @@ buildPythonPackage rec {
owner = "thegeeklab";
repo = "ansible-doctor";
rev = "refs/tags/v${version}";
hash = "sha256-kfBEV3PXU+C7FD9xiBMvdamb3b2KXp+Qi23/xUnoXHM=";
hash = "sha256-blCBlSCp7W6tlCa5381ex7yq37iY9v6u7ITHmJEUxl0=";
};
nativeBuildInputs = [
@ -56,9 +56,9 @@ buildPythonPackage rec {
--replace 'Jinja2 = "3.1.2"' 'Jinja2 = "*"' \
--replace 'anyconfig = "0.13.0"' 'anyconfig = "*"' \
--replace 'environs = "9.5.0"' 'environs = "*"' \
--replace 'jsonschema = "4.6.0"' 'jsonschema = "*"' \
--replace 'jsonschema = "4.15.0"' 'jsonschema = "*"' \
--replace '"ruamel.yaml" = "0.17.21"' '"ruamel.yaml" = "*"' \
--replace 'python-json-logger = "2.0.2"' 'python-json-logger = "*"'
--replace 'python-json-logger = "2.0.4"' 'python-json-logger = "*"'
'';
# Module has no tests

View File

@ -23,7 +23,7 @@
buildPythonPackage rec {
pname = "ansible-later";
version = "2.0.16";
version = "2.0.20";
format = "pyproject";
disabled = pythonOlder "3.8";
@ -32,7 +32,7 @@ buildPythonPackage rec {
owner = "thegeeklab";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-AlLy8rqqNrJtoI01OHq8W1Oi8iN8RiBdtq2sZ7zlTyM=";
hash = "sha256-LoJ02PGOo/qrwH4PJYI0CFZ/cMxhjNj1JiUPnK2FIlA=";
};
postPatch = ''

View File

@ -4,7 +4,9 @@
, setuptools-scm
, ansible-compat
, ansible-core
, black
, enrich
, filelock
, flaky
, jsonschema
, pythonOlder
@ -20,13 +22,13 @@
buildPythonPackage rec {
pname = "ansible-lint";
version = "6.4.0";
version = "6.5.2";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-xadjBsrpBqJgz3KGyofE0DukSSsu17/qIa0R/fPH6NE=";
sha256 = "sha256-9EMsdMDyiyhwoYi0mZWS9jOAQvMNDG9O4RsyRAyp/+Q=";
};
postPatch = ''
@ -42,7 +44,9 @@ buildPythonPackage rec {
propagatedBuildInputs = [
ansible-compat
ansible-core
black
enrich
filelock
jsonschema
pytest # yes, this is an actual runtime dependency
pyyaml

View File

@ -20,7 +20,7 @@
let
pname = "ansible";
version = "6.2.0";
version = "6.3.0";
in
buildPythonPackage {
inherit pname version;
@ -30,7 +30,7 @@ buildPythonPackage {
src = fetchPypi {
inherit pname version;
sha256 = "sha256-va8rL9km/xifveL+/nI0cz8yw2/EEwM/pdk5RfvcBqY=";
sha256 = "sha256-1fqfwVqNRcjVJHqWRbC0j5ldc1sSxNplVmbUhQYnNSY=";
};
postPatch = ''

View File

@ -8,7 +8,7 @@
buildPythonPackage rec {
pname = "archinfo";
version = "9.2.15";
version = "9.2.18";
format = "pyproject";
disabled = pythonOlder "3.8";
@ -17,7 +17,7 @@ buildPythonPackage rec {
owner = "angr";
repo = pname;
rev = "v${version}";
hash = "sha256-K9EAyCvwgWhiZ+rkPKPGBr3lWYIIRCf0FAzPjIjrcU8=";
hash = "sha256-atLc02FoW2cmlvA/jzRsOeXEY9cyrSeLSl3+pO5nNKA=";
};
nativeBuildInputs = [

View File

@ -12,13 +12,13 @@
buildPythonPackage rec {
pname = "arrow";
version = "1.2.2";
version = "1.2.3";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-Bcrx/T2aEaETWytvCYh0IRU7lFWOXvTQkLVntHFzrCs=";
sha256 = "sha256-OTSzDKG58pI3bZ2xWxlEYIjRLsWGKbw/DaKP1V+2M6E=";
};
postPatch = ''

View File

@ -9,11 +9,11 @@
buildPythonPackage rec {
pname = "asttokens";
version = "2.0.5";
version = "2.0.8";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-mlTBFPAsepSA1WVQkyVGo/H+cdigLxvHzNDuPuNc9NU=";
sha256 = "sha256-xh4WJG7Pss3ilYQGtMjrwEPJ5tc6qoPJQWc7NeXTp2s=";
};
nativeBuildInputs = [

View File

@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchPypi
, async-timeout
, pysnmp
}:
@ -13,7 +14,10 @@ buildPythonPackage rec {
sha256 = "sha256-vvq8InmJUgvm/PpvZutpsBR3Fj1gR+xrkgfEGlw04Ek=";
};
propagatedBuildInputs = [ pysnmp ];
propagatedBuildInputs = [
async-timeout
pysnmp
];
# Project has no test
doCheck = false;

View File

@ -10,14 +10,14 @@
buildPythonPackage rec {
pname = "atpublic";
version = "3.0.1";
version = "3.1.1";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "bb072b50e6484490404e5cb4034e782aaa339fdd6ac36434e53c10791aef18bf";
sha256 = "sha256-MJjuEtAQfMUAnWH06A5e3PrEzaK9qgRkSvdYJ8sSGxg=";
};
nativeBuildInputs = [

View File

@ -48,14 +48,14 @@
buildPythonPackage rec {
pname = "autobahn";
version = "22.6.1";
version = "22.7.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-+2PpRtXC3Q32gIUehOZWJKSUzofJmfKklE5PLYG/RJg=";
sha256 = "sha256-i0Yuouaq1rTcDtRfuAC2y/6wMl5/5pg5B/Ei8r5KH+k=";
};
postPatch = ''

View File

@ -0,0 +1,31 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "autocommand";
version = "2.2.1";
src = fetchFromGitHub {
owner = "Lucretiel";
repo = "autocommand";
rev = version;
sha256 = "sha256-bjoVGfP57qhvPuHHcMP8JQddAaW4/fEyatElk1UEPZo=";
};
# fails with: SyntaxError: invalid syntax
doCheck = false;
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "autocommand" ];
meta = with lib; {
description = " Autocommand turns a python function into a CLI program ";
homepage = "https://github.com/Lucretiel/autocommand";
license = licenses.lgpl3;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}

View File

@ -1,31 +1,39 @@
{ lib, fetchPypi, buildPythonPackage, pycodestyle, glibcLocales
{ lib
, fetchPypi
, buildPythonPackage
, pycodestyle
, glibcLocales
, toml
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "autopep8";
version = "1.6.0";
version = "1.7.0";
src = fetchPypi {
inherit pname version;
sha256 = "44f0932855039d2c15c4510d6df665e4730f2b8582704fa48f9c55bd3e17d979";
sha256 = "sha256-ypsag+U6f61l1zHceiotUKpI9DhQQHxZ9qGjBsQgEUI=";
};
propagatedBuildInputs = [ pycodestyle toml ];
# One test fails:
# FAIL: test_recursive_should_not_crash_on_unicode_filename (test.test_autopep8.CommandLineTests)
# doCheck = false;
checkInputs = [
glibcLocales
pytestCheckHook
];
checkInputs = [ glibcLocales ];
disabledTests = [
# missing tox.ini file from pypi package
"test_e101_skip_innocuous"
];
LC_ALL = "en_US.UTF-8";
meta = with lib; {
description = "A tool that automatically formats Python code to conform to the PEP 8 style guide";
homepage = "https://pypi.python.org/pypi/autopep8/";
homepage = "https://pypi.org/project/autopep8/";
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ bjornfor ];
};
}

View File

@ -18,14 +18,14 @@
, typing-extensions }:
buildPythonPackage rec {
version = "1.24.2";
version = "1.25.1";
pname = "azure-core";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "sha256-Dzog0kVlm/gfs2cAcKVBDI1KQymNWpgeYtzjkwAKkIQ=";
sha256 = "sha256-PBzzaGUOduwAnAfNEXSpXNy0cbJHu3LRgkX31WwYCbI=";
};
propagatedBuildInputs = [

View File

@ -9,7 +9,7 @@
buildPythonPackage rec {
pname = "azure-eventhub";
version = "5.10.0";
version = "5.10.1";
format = "setuptools";
disabled = pythonOlder "3.6";
@ -17,7 +17,7 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "8c83fbe96a420813599a9a3c66adc315b7208f56d5a50a20aa04a8aa7062b074";
sha256 = "sha256-LV+o7dMVCFIQfq9d2wYY34LghIP5FN06zDpUPtkELFQ=";
};
propagatedBuildInputs = [

View File

@ -6,13 +6,13 @@
}:
buildPythonPackage rec {
version = "2.1.0";
version = "2.2.0";
pname = "azure-mgmt-appconfiguration";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "sha256-6s3KfWOlzkoq7uxuDbFMYmW22rOYHtgQgYQ6RMFQiQ8=";
sha256 = "sha256-R2COS22pCtFp3oV98LLn/X2LkPOVUCasEONhFIhEdBQ=";
extension = "zip";
};

View File

@ -11,12 +11,12 @@
buildPythonPackage rec {
pname = "azure-mgmt-containerinstance";
version = "9.2.0";
version = "10.0.0";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "sha256-3rElVUvbGqF99ppZanUUrwFGtCAXak2zhMVOd6n9bkY=";
sha256 = "sha256-TDGrC7YO05Ywa8uEINqqw4Wxag65aklIUwS+2aVMHwA=";
};
propagatedBuildInputs = [

View File

@ -11,7 +11,7 @@
buildPythonPackage rec {
pname = "azure-mgmt-containerservice";
version = "20.2.0";
version = "20.3.0";
format = "setuptools";
disabled = pythonOlder "3.6";
@ -19,7 +19,7 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "sha256-+XNJbI4LTxx8kcNr6dDlcaGujrqriKaEPb0deo6YbkM=";
sha256 = "sha256-p2q1fzpPrwYKUAilPTGzRDlkT9OKqnjZVN2jslY/WSw=";
};
propagatedBuildInputs = [

View File

@ -6,13 +6,13 @@
}:
buildPythonPackage rec {
version = "1.3.1";
version = "1.3.2";
pname = "azure-mgmt-core";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "sha256-yJ6/GMInvJih7sypVGC4p+IwWQ1FbI+pwtWs3GcPeAg=";
sha256 = "sha256-B/Sv6COlXXBLBI1h7f3BMYwFHtWfJEAyEmNQvpXp1QE=";
};
propagatedBuildInputs = [

View File

@ -10,7 +10,7 @@
buildPythonPackage rec {
pname = "azure-mgmt-cosmosdb";
version = "7.0.0";
version = "8.0.0";
format = "setuptools";
disabled = pythonOlder "3.6";
@ -18,7 +18,7 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
extension = "zip";
hash = "sha256-NMwcqgvxwma+aXUhL8OQm+tpH+MCCjHMALf0Ii8bQlo=";
hash = "sha256-/6ySVfCjr1YiiZIZJElrd1EfirV+TJvE/FvKs7UhoKo=";
};
propagatedBuildInputs = [

View File

@ -10,7 +10,7 @@
buildPythonPackage rec {
pname = "azure-mgmt-datafactory";
version = "2.7.0";
version = "2.8.0";
format = "setuptools";
disabled = pythonOlder "3.6";
@ -18,7 +18,7 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
extension = "zip";
hash = "sha256-g7av5MFy4QNg+81PqDGznHXUZsHhnaauaJV/B6GMy4A=";
hash = "sha256-LH2YdWuRC5mzImF6ImkOixHBcgc7Yoi0Rai5m64/aiU=";
};
propagatedBuildInputs = [

View File

@ -11,12 +11,12 @@
buildPythonPackage rec {
pname = "azure-mgmt-iothub";
version = "2.2.0";
version = "2.3.0";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "sha256-nsAeVhs5N8bpwYenmRwJmqF/IAqz/ulSoYIeOU5l0eM=";
sha256 = "sha256-ml+koj52l5o0toAcnsGtsw0tGnO5F/LKq56ovzdmx/A=";
};
propagatedBuildInputs = [

View File

@ -10,7 +10,7 @@
buildPythonPackage rec {
pname = "azure-mgmt-media";
version = "10.0.0";
version = "10.1.0";
format = "setuptools";
disabled = pythonOlder "3.6";
@ -18,7 +18,7 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
extension = "zip";
hash = "sha256-KKUeibEAUqKsjjjqpzYBFaQUGniY3rbe+lfCnL0+lpY=";
hash = "sha256-lm3rL9x+R4FCqrIyZG7jc3Yro6xUcDs1wRNNo1XQJIk=";
};
propagatedBuildInputs = [

View File

@ -11,12 +11,12 @@
buildPythonPackage rec {
pname = "azure-mgmt-redis";
version = "13.1.0";
version = "14.0.0";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "ece913e5fc7f157e945809e557443f79ff7691cabca4bbc5ecb266352f843179";
sha256 = "sha256-WErNQiinmxBNyaOAqbHWGk2OLxtM9o63wDEQGf+iL6Q=";
};
propagatedBuildInputs = [

View File

@ -11,12 +11,12 @@
buildPythonPackage rec {
pname = "azure-mgmt-subscription";
version = "3.0.0";
version = "3.1.1";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "157bd9123a5814473a9cd131832ea614c478548722ec01f47b35d778dc307d55";
sha256 = "sha256-TiVbTOm5JDV7uMUAmzyIogFNMgOySV4iVvoCe/hOgA4=";
};
propagatedBuildInputs = [

View File

@ -11,12 +11,12 @@
buildPythonPackage rec {
pname = "azure-storage-blob";
version = "12.13.0";
version = "12.13.1";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "sha256-U/DUzTKXCsn/m5dT+D3S+z+aww4dAecWOMQ2xQm/2IQ=";
sha256 = "sha256-iZxLjiZxgS0s948QdVaifbsSjKqiuwYJTnKj1YNnQK8=";
};
propagatedBuildInputs = [

View File

@ -1,8 +1,16 @@
{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, poetry, pytest-asyncio, responses }:
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytestCheckHook
, pytest-asyncio
, responses
}:
buildPythonPackage rec {
pname = "backoff";
version = "2.1.2";
format = "pyproject";
src = fetchFromGitHub {
owner = "litl";
@ -11,11 +19,19 @@ buildPythonPackage rec {
sha256 = "sha256-eKd1g3UxXlpSlNlik80RKXRaw4mZyvAWl3i2GNuZ3hI=";
};
format = "pyproject";
nativeBuildInputs = [
poetry-core
];
nativeBuildInputs = [ poetry ];
checkInputs = [
pytest-asyncio
pytestCheckHook
responses
];
checkInputs = [ pytestCheckHook pytest-asyncio responses ];
pythonImportsCheck = [
"backoff"
];
meta = with lib; {
description = "Function decoration for backoff and retry";

View File

@ -1,32 +1,45 @@
{ lib
, buildPythonPackage
, rustPlatform
, setuptools
, setuptools-rust
, isPyPy
, fetchPypi
, pythonOlder
, cffi
, pytestCheckHook
, six
}:
buildPythonPackage rec {
pname = "bcrypt";
version = "3.2.2";
version = "4.0.0";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-QzxBDCF3BXcF2iqfLNAd0VdJOyp6wUyFk6FrPatra/s=";
hash = "sha256-xZwXD8kiX6rQTd4bph2FtBOUbozi5fX1/zDf1nKD8xk=";
};
cargoRoot = "src/_bcrypt";
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
sourceRoot = "${pname}-${version}/${cargoRoot}";
name = "${pname}-${version}";
hash = "sha256-HvfRLyUhlXVuvxWrtSDKx3rMKJbjvuiMcDY6g+pYFS0=";
};
nativeBuildInputs = [
setuptools
];
setuptools-rust
rustPlatform.cargoSetupHook
] ++ (with rustPlatform; [
rust.cargo
rust.rustc
]);
propagatedBuildInputs = [
six
cffi
];

View File

@ -7,12 +7,12 @@
buildPythonPackage rec {
pname = "biliass";
version = "1.3.4";
version = "1.3.5";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-kktK+6rLwYhkG7LiTBlgBbiIN8apweg4l8pJSTjKQU4=";
sha256 = "sha256-kgoQUX2l5YENEozcnfluwvcAO1ZSxlfHPVIa9ABW6IU=";
};
propagatedBuildInputs = [ protobuf ];

View File

@ -9,14 +9,14 @@
buildPythonPackage rec {
pname = "billiard";
version = "4.0.0";
version = "4.0.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-NE2aHX063fFx6yxZbJ6Y0e/4Gw4D8fk5iTmjUYyiY6k=";
sha256 = "sha256-jUFd+FrDG5dXlxJaxIZJL+TF5OJx07DfdWHrI0YsmwM=";
};
checkInputs = [

View File

@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "bincopy";
version = "17.10.3";
version = "17.11.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-HDSqwrCXf2U0uzfa4Vb9Euu9ZSm6eFD9bcMf6eieicY=";
sha256 = "sha256-rk7jYr9jUz7TUckoYkv74rr5D9fJLD3h7UFBH0XeleE=";
};
propagatedBuildInputs = [

View File

@ -7,14 +7,14 @@
buildPythonPackage rec {
pname = "bitarray";
version = "2.5.1";
version = "2.6.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-jTj2B1EAgJmmWdWs+zXvQVAYPv/Vsr+mwQGZJw3fTJw=";
hash = "sha256-VtPxbdgHscVnMqJEzgccE17pc9PtyZKUGMGyTFQ5oP0=";
};
checkPhase = ''

View File

@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "bitbox02";
version = "6.0.0";
version = "6.1.1";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-wTateh3dJycFNozLaQbAzXF0avr2ofBdjlqqcOBLr/0=";
sha256 = "sha256-mVA0CdbGGJn44R6xHnophmsnVMsCwDrPNM3vmXVa7dg=";
};
propagatedBuildInputs = [ base58 ecdsa hidapi noiseprotocol protobuf semver typing-extensions ];

View File

@ -8,12 +8,12 @@
buildPythonPackage rec {
pname = "bitcoin-utils-fork-minimal";
version = "0.4.11.4";
version = "0.4.11.6";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-n3tEQkl6KBAno4LY67lZme3TIvsm35VA2yyfWYuIE1c=";
hash = "sha256-DzibvC8qr/5ync59cfFB7tBmZWkPs/hKh+e5OC4lcEw=";
};
propagatedBuildInputs = [

View File

@ -1,6 +1,7 @@
{ lib
, async-timeout
, bleak
, dbus-fast
, buildPythonPackage
, fetchFromGitHub
, poetry-core
@ -11,7 +12,7 @@
buildPythonPackage rec {
pname = "bleak-retry-connector";
version = "1.11.0";
version = "1.16.0";
format = "pyproject";
disabled = pythonOlder "3.7";
@ -19,10 +20,15 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "Bluetooth-Devices";
repo = pname;
rev = "v${version}";
hash = "sha256-I9nXLzy+OmfaQJBTeBSL/yhhrdNnldd42d5QwRDK9Q4=";
rev = "refs/tags/v${version}";
hash = "sha256-IDfamUZB9WJH+ybZ0ULBSEd1koMHTZ1/DaFTf6oviM8=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=bleak_retry_connector --cov-report=term-missing:skip-covered" ""
'';
nativeBuildInputs = [
poetry-core
];
@ -30,6 +36,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [
async-timeout
bleak
dbus-fast
];
checkInputs = [
@ -37,10 +44,12 @@ buildPythonPackage rec {
pytestCheckHook
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=bleak_retry_connector --cov-report=term-missing:skip-covered" ""
'';
disabledTests = [
# broken mocking
"test_establish_connection_can_cache_services_services_missing"
"test_establish_connection_with_dangerous_use_cached_services"
"test_establish_connection_without_dangerous_use_cached_services"
];
pythonImportsCheck = [
"bleak_retry_connector"

View File

@ -2,33 +2,35 @@
, async-timeout
, bluez
, buildPythonPackage
, dbus-next
, fetchPypi
, dbus-fast
, fetchFromGitHub
, poetry-core
, pytestCheckHook
, pythonOlder
, typing-extensions
, setuptools
}:
buildPythonPackage rec {
pname = "bleak";
version = "0.16.0";
version = "0.17.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-pUn0PjxdjeRkxytLkFU0w/R4F0bpgV7NUxtyVd4uGcc=";
src = fetchFromGitHub {
owner = "hbldh";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-AnH23AWrLw2jq6gSbx9VoGD8QXeCH5dN7FSVVdj4b3w=";
};
nativeBuildInputs = [
setuptools
poetry-core
];
propagatedBuildInputs = [
async-timeout
dbus-next
dbus-fast
typing-extensions
];

View File

@ -9,11 +9,11 @@
buildPythonPackage rec {
pname = "blis";
version = "0.9.0";
version = "0.9.1";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-aZ4coUlnFjcLS5tSfFjYQr+JKGPY2UTNoy+HIO08tCk=";
sha256 = "sha256-fOrEZoAfnZfss04Q3e2MJM9eCSfqfoNNocydLtP8Nm8=";
};
nativeBuildInputs = [

View File

@ -11,14 +11,14 @@
buildPythonPackage rec {
pname = "block-io";
version = "2.0.5";
version = "2.0.6";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "af70c3be444f2f2d07c0603cef547b51bbd9f4fbd4aadebd8f1e8ee73ccbc5e5";
sha256 = "sha256-M7czfpagXqoWWSu4enB3Z2hc2GtAaskI6cnJzJdpC8I=";
};
propagatedBuildInputs = [

View File

@ -13,11 +13,11 @@
buildPythonPackage rec {
pname = "boto3";
version = "1.24.42"; # N.B: if you change this, change botocore and awscli to a matching version
version = "1.24.75"; # N.B: if you change this, change botocore and awscli to a matching version
src = fetchPypi {
inherit pname version;
sha256 = "sha256-3z1u8CMEvXw3EQkJNsCS1dtzXdoQneysHiNsPvf9t68=";
sha256 = "sha256-e/oiQt+bH6c+F/TX959rIlYPVdXaLifleOWF725LFKc=";
};
propagatedBuildInputs = [ botocore jmespath s3transfer ] ++ lib.optionals (!isPy3k) [ futures ];

View File

@ -12,11 +12,11 @@
buildPythonPackage rec {
pname = "botocore";
version = "1.27.42"; # N.B: if you change this, change boto3 and awscli to a matching version
version = "1.27.75"; # N.B: if you change this, change boto3 and awscli to a matching version
src = fetchPypi {
inherit pname version;
sha256 = "sha256-OKGApmZsWpsGmnXsPPN0/ypkw+kMnySpFoWLzesERW0=";
sha256 = "sha256-+LHaK0HojFjbUdsMbv9spWQliUjOSlrH6WrDWkabDU8=";
};
propagatedBuildInputs = [

View File

@ -6,13 +6,13 @@
buildPythonPackage rec {
pname = "bottle";
version = "0.12.21";
version = "0.12.23";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "787c61b6cc02b9c229bf2663011fac53dd8fc197f7f8ad2eeede29d888d7887e";
sha256 = "sha256-aD3jqjmfsm6HsnTbz3CxplE4XUWRMXFjh6vcN5LgQWc=";
};
checkInputs = [

View File

@ -19,14 +19,14 @@
buildPythonPackage rec {
pname = "boxx";
version = "0.10.5";
version = "0.10.6";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-6qO/aPegHk+1PAu8qzIkC3fULh2WjgJcqNui+XEaLQw=";
hash = "sha256-npPwYhDTujBpTnPyhvZbA+EK4jU8nnHSBgSw9xlTcJM=";
};
propagatedBuildInputs = [

View File

@ -20,14 +20,14 @@
buildPythonPackage rec {
pname = "bpython";
version = "0.22.1";
version = "0.23";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-H7HgpSMyV5/E49z3XiF5avZ6rivkYBeez8zpUwpJogA=";
hash = "sha256-nwB4q8iHxIrwiGkeL2R5fWyplKwPS8A8ONBvZX18BSo=";
};
propagatedBuildInputs = [

View File

@ -11,6 +11,7 @@
, pytest-mock
, pytestCheckHook
, pythonOlder
, setuptools
, yarl
}:
@ -30,6 +31,7 @@ buildPythonPackage rec {
nativeBuildInputs = [
poetry-core
setuptools
];
propagatedBuildInputs = [

View File

@ -3,7 +3,6 @@
, buildPythonPackage
, fetchFromGitHub
, filelock
, setuptools
, importlib-metadata
, packaging
, pep517
@ -12,6 +11,7 @@
, pytest-xdist
, pytestCheckHook
, pythonOlder
, setuptools
, toml
, tomli
}:

View File

@ -11,6 +11,7 @@ let
withPlugins = plugins: buildPythonPackage {
pname = "${package.pname}-with-plugins";
inherit (package) version;
format = "other";
dontUnpack = true;
dontBuild = true;

View File

@ -8,12 +8,12 @@
buildPythonPackage rec {
pname = "cartopy";
version = "0.20.3";
version = "0.21.0";
src = fetchPypi {
inherit version;
pname = "Cartopy";
sha256 = "sha256-DWD6Li+9d8TR9rH507WIlmFH8HwbF50tNFcKweG0kAY=";
sha256 = "sha256-zh06KKEy6UyJrDN2mlD4H2VjSrK9QFVjF+Fb1srRzkI=";
};
postPatch = ''

View File

@ -49,6 +49,7 @@ buildPythonPackage rec {
"-o cache_dir=$(mktemp -d)"
# See https://github.com/certbot/certbot/issues/8746
"-W ignore::ResourceWarning"
"-W ignore::DeprecationWarning"
];
doCheck = true;

View File

@ -23,7 +23,7 @@
buildPythonPackage rec {
pname = "cherrypy";
version = "18.7.0";
version = "18.8.0";
format = "setuptools";
disabled = pythonOlder "3.7";
@ -31,7 +31,7 @@ buildPythonPackage rec {
src = fetchPypi {
pname = "CherryPy";
inherit version;
hash = "sha256-cpRS95jKdWOQBG7zGAQ8roZKRoFN6vPmvTTclZrxmN4=";
hash = "sha256-m0jPuoovFtW2QZzGV+bVHbAFujXF44JORyi7A7vH75s=";
};
postPatch = ''

View File

@ -10,12 +10,13 @@
, pythonOlder
, pyvex
, pyxbe
, setuptools
, sortedcontainers
}:
let
# The binaries are following the argr projects release cycle
version = "9.2.15";
version = "9.2.18";
# Binary files from https://github.com/angr/binaries (only used for testing and only here)
binaries = fetchFromGitHub {
@ -37,9 +38,13 @@ buildPythonPackage rec {
owner = "angr";
repo = pname;
rev = "v${version}";
hash = "sha256-vGIthytW0gZy0X2OXuFwdBnPuvcWkV47FeaXZY8FCVc=";
hash = "sha256-hg6G07rSPRFGBaJdJduDqb7BVGt/sZtCA4I0Hhl4wfw=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
cffi
minidump

View File

@ -1,26 +1,53 @@
{ lib, buildPythonPackage, fetchPypi
, clikit }:
{ lib
, buildPythonPackage
, fetchFromGitHub
, crashtest
, poetry-core
, pylev
, pytest-mock
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "cleo";
version = "0.8.1";
version = "1.0.0a5";
format = "pyproject";
src = fetchPypi {
inherit pname version;
sha256 = "3d0e22d30117851b45970b6c14aca4ab0b18b1b53c8af57bed13208147e4069f";
src = fetchFromGitHub {
owner = "python-poetry";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-FtGGIRF/tA2OWEjkCFwa1HHg6VY+5E5mAiJC/zjUC1g=";
};
propagatedBuildInputs = [
clikit
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'crashtest = "^0.3.1"' 'crashtest = "*"'
'';
nativeBuildInputs = [
poetry-core
];
# The Pypi tarball doesn't include tests, and the GitHub source isn't
# buildable until we bootstrap poetry, see
# https://github.com/NixOS/nixpkgs/pull/53599#discussion_r245855665
doCheck = false;
propagatedBuildInputs = [
crashtest
pylev
];
pythonImportsCheck = [
"cleo"
"cleo.application"
"cleo.commands.command"
"cleo.helpers"
];
checkInputs = [
pytest-mock
pytestCheckHook
];
meta = with lib; {
homepage = "https://github.com/sdispater/cleo";
homepage = "https://github.com/python-poetry/cleo";
description = "Allows you to create beautiful and testable command-line interfaces";
license = licenses.mit;
maintainers = with maintainers; [ jakewaksbaum ];

View File

@ -9,19 +9,19 @@
, regex
, tabview
, python
, unittestCheckHook
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "clevercsv";
version = "0.7.1";
version = "0.7.4";
format = "setuptools";
src = fetchFromGitHub {
owner = "alan-turing-institute";
repo = "CleverCSV";
rev = "v${version}";
sha256 = "sha256-ynS3G2ZcEqVlC2d6n5ZQ1Em5lh/dWESj9jEO8C4WzZQ=";
sha256 = "sha256-2OLvVJbqV/wR+Quq0cAlR/vCUe1/Km/nALwfoHD9B+U=";
};
propagatedBuildInputs = [
@ -34,7 +34,7 @@ buildPythonPackage rec {
tabview
];
checkInputs = [ unittestCheckHook ];
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [
"clevercsv"
@ -48,7 +48,14 @@ buildPythonPackage rec {
'';
# their ci only runs unit tests, there are also integration and fuzzing tests
unittestFlagsArray = [ "-v" "-f" "-s" "./tests/test_unit" ];
pytestFlagsArray = [
"./tests/test_unit"
];
disabledTestPaths = [
# ModuleNotFoundError: No module named 'wilderness'
"tests/test_unit/test_console.py"
];
meta = with lib; {
description = "CleverCSV is a Python package for handling messy CSV files";

View File

@ -3,6 +3,7 @@
, fetchPypi
, autopage
, cmd2
, importlib-metadata
, installShellFiles
, openstackdocstheme
, pbr
@ -16,11 +17,11 @@
buildPythonPackage rec {
pname = "cliff";
version = "3.10.1";
version = "4.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-BFruPzxkRxll161QfOhHSk4vIIFfu1QFp3D4WWoqAKA=";
sha256 = "sha256-Ow0w56z1DjwhSjnuPmaqLytZV+Kh3jc+F7uo6Yx1AaU=";
};
postPatch = ''
@ -38,6 +39,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [
autopage
cmd2
importlib-metadata
pbr
prettytable
pyparsing

View File

@ -1,26 +1,63 @@
{ lib, buildPythonPackage, fetchPypi
, isPy27, pythonAtLeast
, pylev, pastel, typing ? null, enum34 ? null, crashtest }:
{ lib
, buildPythonPackage
, fetchFromGitHub
, isPy27
, pythonAtLeast
, poetry-core
# propagates
, pylev
, pastel
# python36+
, crashtest
# python2
, typing
, enum34
# tests
, pytest-mock
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "clikit";
version = "0.6.2";
format = "pyproject";
src = fetchPypi {
inherit pname version;
sha256 = "0ngdkmb73gkp5y00q7r9k1cdlfn0wyzws2wrqlshc4hlkbdyabj4";
src = fetchFromGitHub {
owner = "sdispater";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-xAsUNhVQBjtSFHyjjnicAKRC3+Tdn3AdGDUYhmOOIdA=";
};
propagatedBuildInputs = [
pylev pastel
]
++ lib.optionals (pythonAtLeast "3.6") [ crashtest ]
++ lib.optionals isPy27 [ typing enum34 ];
postPatch = ''
substituteInPlace pyproject.toml --replace \
'crashtest = { version = "^0.3.0", python = "^3.6" }' \
'crashtest = { version = "*", python = "^3.6" }'
'';
# The Pypi tarball doesn't include tests, and the GitHub source isn't
# buildable until we bootstrap poetry, see
# https://github.com/NixOS/nixpkgs/pull/53599#discussion_r245855665
doCheck = false;
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
pylev
pastel
]
++ lib.optionals (pythonAtLeast "3.6") [ crashtest ]
++ lib.optionals isPy27 [ typing enum34 ];
checkInputs = [
pytest-mock
pytestCheckHook
];
pythonImportsCheck = [
"clikit"
];
meta = with lib; {
homepage = "https://github.com/sdispater/clikit";

View File

@ -2,6 +2,9 @@
, buildPythonPackage
, fetchPypi
# build
, setuptools
# propagtes
, sigtools
, six
@ -21,6 +24,7 @@
buildPythonPackage rec {
pname = "clize";
version = "4.2.1";
format = "pyproject";
src = fetchPypi {
inherit pname version;
@ -29,9 +33,14 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace setup.py \
--replace "docutils ~= 0.17.0" "docutils"
--replace "docutils ~= 0.17.0" "docutils" \
--replace "attrs>=19.1.0,<22" "attrs>=19.1.0"
'';
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
attrs
docutils

View File

@ -8,14 +8,14 @@
buildPythonPackage rec {
pname = "cloudpickle";
version = "2.1.0";
version = "2.2.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-uyM+h2pYSR2VkKZ2+Tx6VHOgj3R9Wrnff5zlZLPnk44=";
hash = "sha256-P0IZRpxVRTz+RzflZLZ8KhSRCdq/fyQkeJSLiV9hEG8=";
};
checkInputs = [

View File

@ -9,14 +9,14 @@
buildPythonPackage rec {
pname = "cloudsmith-api";
version = "1.61.3";
version = "1.120.3";
format = "wheel";
src = fetchPypi {
pname = "cloudsmith_api";
inherit format version;
sha256 = "sha256-Y8CnbX9rhtk8sebJKo5kyqFwCkJgBjz3dgm58VHRPhY=";
sha256 = "sha256-rtOpA0yTEiSvzUgG1IuaIXlLrdqVT85vnR5yOdi44c0=";
};
propagatedBuildInputs = [

View File

@ -12,7 +12,7 @@
buildPythonPackage rec {
pname = "cocotb";
version = "1.6.2";
version = "1.7.0";
# - we need to use the tarball from PyPi
# or the full git checkout (with .git)
@ -20,7 +20,7 @@ buildPythonPackage rec {
# because it does not include required metadata
src = fetchPypi {
inherit pname version;
sha256 = "sha256-SY+1727DbWMg6CnmHw8k/VP0dwBRYszn+YyyvZXgvUs=";
sha256 = "sha256-CF/ZXkEQDDPwTN2+ngyUKy55XwShR6/Fr5az/aYcY/Q=";
};
nativeBuildInputs = [ setuptools-scm ];

View File

@ -6,11 +6,11 @@
buildPythonPackage rec {
pname = "colorlog";
version = "6.6.0";
version = "6.7.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-NE9zIEAJ5Mg8W2vrALPEXccPza48gNuRngpBcdAG/eg=";
sha256 = "sha256-vZS9IcHhP6x70xU/S8On3A6wl0uLwv3xqYnkdPblguU=";
};
checkInputs = [ pytestCheckHook ];

View File

@ -19,14 +19,14 @@
buildPythonPackage rec {
pname = "commoncode";
version = "30.2.0";
version = "31.0.0";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-7kcDWfw4M7boe0ABO4ob1d+XO1YxS924mtGETvHoNf0=";
sha256 = "sha256-iX7HjsbW9rUgG35XalqfXh2+89vEiwish90FGOpkzRo=";
};
postPatch = ''
@ -57,7 +57,15 @@ buildPythonPackage rec {
pytest-xdist
];
disabledTests = lib.optionals stdenv.isDarwin [
disabledTests = [
# chinese character translates different into latin
"test_safe_path_posix_style_chinese_char"
# OSError: [Errno 84] Invalid or incomplete multibyte or wide character
"test_os_walk_can_walk_non_utf8_path_from_unicode_path"
"test_resource_iter_can_walk_non_utf8_path_from_unicode_path"
"test_walk_can_walk_non_utf8_path_from_unicode_path"
"test_resource_iter_can_walk_non_utf8_path_from_unicode_path_with_dirs"
] ++ lib.optionals stdenv.isDarwin [
# expected result is tailored towards the quirks of upstream's
# CI environment on darwin
"test_searchable_paths"

View File

@ -1,26 +1,27 @@
{ lib, stdenv, buildPythonPackage, fetchPypi, setuptools-scm }:
{ lib, stdenv, buildPythonPackage, fetchPypi, pytestCheckHook, setuptools-scm }:
buildPythonPackage rec {
pname = "configparser";
version = "5.2.0";
version = "5.3.0";
format = "pyproject";
src = fetchPypi {
inherit pname version;
sha256 = "1b35798fdf1713f1c3139016cfcbc461f09edbf099d1fb658d4b7479fcaa3daa";
sha256 = "sha256-i+JngktUHAmwjbEkkX9Iq1JabD6DcBHzEweBoiTFcJA=";
};
# No tests available
doCheck = false;
nativeBuildInputs = [ setuptools-scm ];
checkInputs = [ pytestCheckHook ];
preConfigure = ''
export LC_ALL=${if stdenv.isDarwin then "en_US" else "C"}.UTF-8
'';
meta = with lib; {
description = "Updated configparser from Python 3.7 for Python 2.6+.";
license = licenses.mit;
homepage = "https://github.com/jaraco/configparser";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}

View File

@ -7,13 +7,13 @@
buildPythonPackage rec {
pname = "coverage";
version = "6.4.2";
version = "6.4.4";
# uses f strings
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-bDzP6Jw28+W5g3ue5QdHIxAWTzUsn+MyEgt2TJ1grb4=";
sha256 = "sha256-4WxFtyast4Dh5viLKG08ELORSrA0OPMhF8SqUtfzDVg=";
};
# No tests in archive

View File

@ -2,12 +2,12 @@
buildPythonPackage rec {
pname = "crashtest";
version = "0.3.1";
version = "0.4.0";
disabled = !(pythonAtLeast "3.6");
src = fetchPypi {
inherit pname version;
sha256 = "42ca7b6ce88b6c7433e2ce47ea884e91ec93104a4b754998be498a8e6c3d37dd";
sha256 = "sha256-1imwDx1OecMWkJ9Ot2O7yym1ENZfveE2Whzrk6t/pMg=";
};
# has tests, but only on GitHub, however the pyproject build fails for me

View File

@ -27,19 +27,19 @@ let
in
buildPythonPackage rec {
pname = "cryptography";
version = "37.0.4"; # Also update the hash in vectors.nix
version = "38.0.1"; # Also update the hash in vectors.nix
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-Y/nBfA4kdMy+vJMCzi8HtVs7P8shHe0YpC1XZPXBCoI=";
hash = "sha256-HbPYB6FJMfoxf5ZDVpXZ7Dhr57hLYYzGHPpdCLCuM9c=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
sourceRoot = "${pname}-${version}/${cargoRoot}";
name = "${pname}-${version}";
hash = "sha256-f8r6QclTwkgK20CNe9i65ZOqvSUeDc4Emv6BFBhh1hI=";
hash = "sha256-o8l13fnfEUvUdDasq3LxSPArozRHKVsZfQg9DNR6M6Q=";
};
cargoRoot = "src/rust";

View File

@ -8,7 +8,7 @@ buildPythonPackage rec {
src = fetchPypi {
pname = "cryptography_vectors";
inherit version;
hash = "sha256-WmFABRDiiTelZUtAxupOPlk8Wq8MIIHFuRLw58+IPqg=";
hash = "sha256-BDH9EHwfutA3dwSnBRlFs7ORFp/dxPb6C9TtxrbiNd0=";
};
# No tests included

View File

@ -9,12 +9,12 @@ let
inherit (cudaPackages) cudatoolkit cudnn cutensor nccl;
in buildPythonPackage rec {
pname = "cupy";
version = "10.6.0";
version = "11.1.0";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "sha256-9jWpfd4l4LSptJewdQaaurm/huHcKv48+XOZDCLTJV8=";
sha256 = "sha256-4TtvmQrd172HCQWvQp+tUQhNCFf4YA3TIGod9aRoTt0=";
};
# See https://docs.cupy.dev/en/v10.2.0/reference/environment.html. Seting both

View File

@ -1,21 +1,35 @@
{ stdenv, lib, buildPythonPackage, fetchPypi, pythonOlder, blessings, mock, nose, pyte, cwcwidth, typing ? null}:
{ stdenv
, lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, blessed
, backports-cached-property
, pyte
, pytestCheckHook
, cwcwidth
}:
buildPythonPackage rec {
pname = "curtsies";
version = "0.3.10";
version = "0.4.0";
format = "pyproject";
src = fetchPypi {
inherit pname version;
sha256 = "11efbb153d9cb22223dd9a44041ea0c313b8411e246e7f684aa843f6aa9c1600";
hash = "sha256-yynvzjP+85WinvpWjyf1kTF4Rp+zqrEUCA1spiZBQv4=";
};
propagatedBuildInputs = [ blessings cwcwidth ]
++ lib.optionals (pythonOlder "3.5") [ typing ];
propagatedBuildInputs = [
backports-cached-property
blessed
cwcwidth
];
checkInputs = [ mock pyte nose ];
checkPhase = ''
nosetests tests
'';
checkInputs = [
pyte
pytestCheckHook
];
meta = with lib; {
broken = stdenv.isDarwin;

View File

@ -1,11 +1,12 @@
{ stdenv, lib, buildPythonPackage, pythonOlder, fetchPypi, ncurses, importlib-metadata }:
buildPythonPackage rec {
pname = "cx_Freeze";
pname = "cx-freeze";
version = "6.11.1";
src = fetchPypi {
inherit pname version;
pname = "cx_Freeze";
inherit version;
sha256 = "sha256-jzowyeM5TykGVeNG07RgkQZWswrGNHqHSZu1rTZcbnw=";
};
@ -17,8 +18,11 @@ buildPythonPackage rec {
];
# timestamp need to come after 1980 for zipfiles and nix store is set to epoch
prePatch = ''
postPatch = ''
substituteInPlace cx_Freeze/freezer.py --replace "os.stat(module.file).st_mtime" "time.time()"
substituteInPlace setup.cfg \
--replace "setuptools>=59.0.1,<=60.10.0" "setuptools>=59.0.1"
'';
# fails to find Console even though it exists on python 3.x

View File

@ -12,14 +12,14 @@
buildPythonPackage rec {
pname = "dask-jobqueue";
version = "0.7.4";
version = "0.8.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-XoQwazgJuFvhoEezhhGu2YvIp+VFAe7dhGIEVnuQ5kM=";
hash = "sha256-VCD6Oos9aSkbrzymQnqm2RV5uFzTj05VgPuhJ5PpyAk=";
};
propagatedBuildInputs = [

View File

@ -26,7 +26,7 @@
buildPythonPackage rec {
pname = "dask";
version = "2022.7.0";
version = "2022.9.1";
format = "setuptools";
disabled = pythonOlder "3.7";
@ -35,7 +35,7 @@ buildPythonPackage rec {
owner = "dask";
repo = pname;
rev = version;
hash = "sha256-O5/TNeta0V0v9WTpPmF/kJMJ40ANo6rcRtzurr5/SwA=";
hash = "sha256-4Tok9eYhi2FF+8bpKnwKT3KIRGHIMtxczTkZ6qD8x7g=";
};
propagatedBuildInputs = [
@ -97,9 +97,8 @@ buildPythonPackage rec {
"--reruns 3"
# Don't run tests that require network access
"-m 'not network'"
# Ignore warning about pyarrow 5.0.0 feautres
"-W"
"ignore::FutureWarning"
# DeprecationWarning: The 'sym_pos' keyword is deprecated and should be replaced by using 'assume_a = "pos"'. 'sym_pos' will be removed in SciPy 1.11.0.
"-W" "ignore::DeprecationWarning"
];
disabledTests = lib.optionals stdenv.isDarwin [

View File

@ -9,14 +9,14 @@
buildPythonPackage rec {
pname = "databricks-connect";
version = "10.4.6";
version = "10.4.12";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-Dezqn6rZysRhDQFUuTgXdoJL9dn21Bx2QlryBG9MtR0=";
sha256 = "sha256-T5KGJQryiE2+x9u+AcvTm6dLpU3kh20sCu0CTwpeJao=";
};
sourceRoot = ".";

View File

@ -29,7 +29,15 @@ buildPythonPackage rec {
sha256 = "sha256-bDup3q93Zq+pvwsy/lQy2byOMjG6C/+7813hWQMbZRU=";
};
patches = [
./regex-compat.patch
];
postPatch = ''
substituteInPlace setup.py --replace \
'regex !=2019.02.19,!=2021.8.27,<2022.3.15' \
'regex'
# https://github.com/scrapinghub/dateparser/issues/1053
substituteInPlace tests/test_search.py --replace \
"('June 2020', datetime.datetime(2020, 6, datetime.datetime.utcnow().day, 0, 0))," \

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