Merge pull request #298763 from r-ryantm/auto-update/python311Packages.asyncstdlib

python311Packages.asyncstdlib: 3.12.1 -> 3.12.2
This commit is contained in:
Fabian Affolter 2024-03-28 10:33:56 +01:00 committed by GitHub
commit d610c7abef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 56 additions and 40 deletions

View File

@ -8,7 +8,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "asyncstdlib"; pname = "asyncstdlib";
version = "3.12.1"; version = "3.12.2";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.9"; disabled = pythonOlder "3.9";
@ -17,10 +17,10 @@ buildPythonPackage rec {
owner = "maxfischer2781"; owner = "maxfischer2781";
repo = "asyncstdlib"; repo = "asyncstdlib";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-F7jS2EHiq+gK4a6+wJ8CA2YvwR37PP3yvbsLp3uE8R8="; hash = "sha256-5DQM8m3aeCZAXOi+Rm+iM409juBBYdZDNqBAbhyTm/M=";
}; };
nativeBuildInputs = [ build-system = [
flit-core flit-core
]; ];

View File

@ -1,49 +1,49 @@
{ lib { lib
, astroid
, buildPythonPackage , buildPythonPackage
, pythonOlder , deal-solver
, docstring-parser
, fetchFromGitHub , fetchFromGitHub
, flit-core , flit-core
, astroid
, pytestCheckHook
, docstring-parser
, marshmallow
, sphinx
, hypothesis , hypothesis
, vaa , marshmallow
, deal-solver
, pygments , pygments
, pytestCheckHook
, pythonOlder
, sphinx
, typeguard , typeguard
, urllib3 , urllib3
, flake8 , vaa
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "deal"; pname = "deal";
version = "4.24.3"; version = "4.24.4";
format = "pyproject"; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "life4"; owner = "life4";
repo = pname; repo = "deal";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-QlM3d/jmg6v3L3D45+cgcCej71U1dl4uZ6sAYGGm3tU="; hash = "sha256-4orpoYfPGSvquhg9w63uUe8QbBa2RUpxaEJ9uy28+fU=";
}; };
postPatch = '' postPatch = ''
# don't do coverage # don't do coverage
substituteInPlace pyproject.toml \ substituteInPlace pyproject.toml \
--replace "\"--cov-fail-under=100\"," "" \ --replace-fail '"--cov-fail-under=100",' "" \
--replace "\"--cov=deal\"," "" \ --replace-fail '"--cov=deal",' "" \
--replace "\"--cov-report=html\"," "" \ --replace-fail '"--cov-report=html",' "" \
--replace "\"--cov-report=term-missing:skip-covered\"," "" --replace-fail '"--cov-report=term-missing:skip-covered",' ""
''; '';
nativeBuildInputs = [ build-system = [
flit-core flit-core
]; ];
propagatedBuildInputs = [ dependencies = [
astroid astroid
deal-solver deal-solver
pygments pygments
@ -51,15 +51,13 @@ buildPythonPackage rec {
]; ];
nativeCheckInputs = [ nativeCheckInputs = [
pytestCheckHook
docstring-parser docstring-parser
marshmallow
sphinx
hypothesis hypothesis
vaa marshmallow
pytestCheckHook
sphinx
urllib3 urllib3
flake8 vaa
]; ];
pytestFlagsArray = [ pytestFlagsArray = [
@ -67,7 +65,7 @@ buildPythonPackage rec {
]; ];
disabledTests = [ disabledTests = [
# needs internet access # Tests need internet access
"test_smoke_has" "test_smoke_has"
"test_pure_offline" "test_pure_offline"
"test_raises_doesnt_override_another_contract" "test_raises_doesnt_override_another_contract"
@ -84,25 +82,30 @@ buildPythonPackage rec {
# assert errors # assert errors
"test_doctest" "test_doctest"
"test_no_violations" "test_no_violations"
"test_source_get_lambda_multiline_splitted_dec"
]; ];
disabledTestPaths = [ disabledTestPaths = [
# needs internet access # Test needs internet access
"tests/test_runtime/test_offline.py" "tests/test_runtime/test_offline.py"
# depends on typeguard <4.0.0 for tests, but >=4.0.0 seems fine for runtime # depends on typeguard <4.0.0 for tests, but >=4.0.0 seems fine for runtime
# https://github.com/life4/deal/blob/9be70fa1c5a0635880619b2cea83a9f6631eb236/pyproject.toml#L40 # https://github.com/life4/deal/blob/9be70fa1c5a0635880619b2cea83a9f6631eb236/pyproject.toml#L40
"tests/test_testing.py" "tests/test_testing.py"
]; ];
pythonImportsCheck = [ "deal" ]; pythonImportsCheck = [
"deal"
];
meta = with lib; { meta = with lib; {
description = "Library for design by contract (DbC) and checking values, exceptions, and side-effects"; description = "Library for design by contract (DbC) and checking values, exceptions, and side-effects";
longDescription = '' longDescription = ''
In a nutshell, deal empowers you to write bug-free code. In a nutshell, deal empowers you to write bug-free code.
By adding a few decorators to your code, you get for free tests, static analysis, formal verification, and much more By adding a few decorators to your code, you get for free tests, static analysis, formal verification,
and much more.
''; '';
homepage = "https://github.com/life4/deal"; homepage = "https://github.com/life4/deal";
changelog = "https://github.com/life4/deal/releases/tag/${version}";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ gador ]; maintainers = with maintainers; [ gador ];
}; };

View File

@ -1,26 +1,28 @@
{ lib { lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, astor , astor
, asttokens , asttokens
, asyncstdlib , asyncstdlib
, buildPythonPackage
, deal , deal
, dpcontracts , dpcontracts
, fetchFromGitHub
, numpy , numpy
, pytestCheckHook , pytestCheckHook
, pythonOlder
, setuptools
, typing-extensions , typing-extensions
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "icontract"; pname = "icontract";
version = "2.6.6"; version = "2.6.6";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Parquery"; owner = "Parquery";
repo = pname; repo = "icontract";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-R5/FBfuTvXItfTlNZMSnO18Q+etnHbQyXFWpaOpOLes="; hash = "sha256-R5/FBfuTvXItfTlNZMSnO18Q+etnHbQyXFWpaOpOLes=";
}; };
@ -32,7 +34,11 @@ buildPythonPackage rec {
export ICONTRACT_SLOW=1 export ICONTRACT_SLOW=1
''; '';
propagatedBuildInputs = [ build-system = [
setuptools
];
dependencies = [
asttokens asttokens
typing-extensions typing-extensions
]; ];
@ -46,11 +52,16 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
disabledTests = [
# AssertionError
"test_abstract_method_not_implemented"
];
disabledTestPaths = [ disabledTestPaths = [
# mypy decorator checks don't pass. For some reason mypy # mypy decorator checks don't pass. For some reason mypy
# doesn't check the python file provided in the test. # doesn't check the python file provided in the test.
"tests/test_mypy_decorators.py" "tests/test_mypy_decorators.py"
# those tests seems to simply re-run some typeguard tests # Those tests seems to simply re-run some typeguard tests
"tests/test_typeguard.py" "tests/test_typeguard.py"
]; ];
@ -59,7 +70,9 @@ buildPythonPackage rec {
"-W" "ignore::RuntimeWarning" "-W" "ignore::RuntimeWarning"
]; ];
pythonImportsCheck = [ "icontract" ]; pythonImportsCheck = [
"icontract"
];
meta = with lib; { meta = with lib; {
description = "Provide design-by-contract with informative violation messages"; description = "Provide design-by-contract with informative violation messages";