Merge pull request #209900 from dotlambda/python311-fixes

This commit is contained in:
Martin Weinelt
2023-01-09 17:36:31 +00:00
committed by GitHub
6 changed files with 20 additions and 17 deletions
@@ -21,7 +21,7 @@
buildPythonPackage rec {
pname = "anyio";
version = "3.5.0";
version = "3.6.2";
format = "pyproject";
disabled = pythonOlder "3.7";
@@ -29,17 +29,9 @@ buildPythonPackage rec {
owner = "agronholm";
repo = pname;
rev = version;
sha256 = "sha256-AZ9M/NBCBlMIUpRJgKbJRL/oReZDUh2Jhwtoxoo0tMs=";
hash = "sha256-bootaulvx9zmobQGDirsMz5uxuLeCD9ggAvYkPaKnWo=";
};
patches = [
(fetchpatch {
# Pytest 7.0 compatibility
url = "https://github.com/agronholm/anyio/commit/fed7cc4f95e196f68251bcb9253da3b143ea8e7e.patch";
sha256 = "sha256-VmZmiQEmWJ4aPz0Wx+GTMZo7jXRDScnRYf2Hu2hiRVw=";
})
];
preBuild = ''
export SETUPTOOLS_SCM_PRETEND_VERSION=${version}
'';
@@ -95,6 +87,7 @@ buildPythonPackage rec {
pythonImportsCheck = [ "anyio" ];
meta = with lib; {
changelog = "https://github.com/agronholm/anyio/blob/${src.rev}/docs/versionhistory.rst";
description = "High level compatibility layer for multiple asynchronous event loop implementations on Python";
homepage = "https://github.com/agronholm/anyio";
license = licenses.mit;
@@ -1,21 +1,24 @@
{ lib
, python3
, buildPythonPackage
, fetchPypi
, pyflakes
, pytestCheckHook
}:
python3.pkgs.buildPythonApplication rec {
buildPythonPackage rec {
pname = "autoflake";
version = "1.4";
src = python3.pkgs.fetchPypi {
src = fetchPypi {
inherit pname version;
hash = "sha256-YaNTASz/arlMoGKCPR+y9pLErNpRx2/4Oo13kV+6Ueo=";
};
propagatedBuildInputs = with python3.pkgs; [
propagatedBuildInputs = [
pyflakes
];
checkInputs = with python3.pkgs; [
checkInputs = [
pytestCheckHook
];
@@ -19,9 +19,14 @@ buildPythonPackage rec {
};
nativeBuildInputs = [
cython
setuptools
];
preBuild = ''
# re-run cython
make -B
'';
pythonImportsCheck = [
"http_parser"
@@ -54,6 +54,7 @@ buildPythonPackage rec {
cython
] ++ lib.optionals withDocs [
# dependencies for building documentation
autoflake
ansi2html
markdown-include
mdx-truly-sane-lists
@@ -67,7 +68,6 @@ buildPythonPackage rec {
];
propagatedBuildInputs = [
autoflake
devtools
email-validator
pyupgrade
+1 -1
View File
@@ -2644,7 +2644,7 @@ with pkgs;
authenticator = callPackage ../applications/misc/authenticator { };
autoflake = callPackage ../development/tools/analysis/autoflake { };
autoflake = with python3.pkgs; toPythonApplication autoflake;
autospotting = callPackage ../applications/misc/autospotting { };
+2
View File
@@ -780,6 +780,8 @@ self: super: with self; {
autofaiss = callPackage ../development/python-modules/autofaiss { };
autoflake = callPackage ../development/python-modules/autoflake { };
autograd = callPackage ../development/python-modules/autograd { };
autoit-ripper = callPackage ../development/python-modules/autoit-ripper { };