From 2ede5166ef746cbcaface842a4dafc8e99e06332 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 4 Jul 2023 17:25:18 +0200 Subject: [PATCH] python311Packages.mcstatus: 10.0.3 -> 11.0.0 Diff: py-mine/mcstatus@refs/tags/v10.0.3...v11.0.0 Changelog: https://github.com/py-mine/mcstatus/releases/tag/v11.0.0 --- .../python-modules/mcstatus/default.nix | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/mcstatus/default.nix b/pkgs/development/python-modules/mcstatus/default.nix index 9b9eef88eae..9643dc01406 100644 --- a/pkgs/development/python-modules/mcstatus/default.nix +++ b/pkgs/development/python-modules/mcstatus/default.nix @@ -4,16 +4,16 @@ , click , dnspython , fetchFromGitHub -, mock , poetry-core , pytest-asyncio +, pytest-rerunfailures , pytestCheckHook , pythonOlder }: buildPythonPackage rec { pname = "mcstatus"; - version = "10.0.3"; + version = "11.0.0"; format = "pyproject"; disabled = pythonOlder "3.7"; @@ -22,9 +22,15 @@ buildPythonPackage rec { owner = "py-mine"; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-LHcLqP9IGqi0YmjgFoTwojyS+IZmBOBujYWMPuqNc6w="; + hash = "sha256-+r6WL59T9rNAKl3r4Hef75uJoD7DRYA23uS/OlzRyRk="; }; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace 'version = "0.0.0"' 'version = "${version}"' \ + --replace " --cov=mcstatus --cov-append --cov-branch --cov-report=term-missing -vvv --no-cov-on-fail" "" + ''; + nativeBuildInputs = [ poetry-core ]; @@ -36,19 +42,11 @@ buildPythonPackage rec { ]; nativeCheckInputs = [ - mock pytest-asyncio + pytest-rerunfailures pytestCheckHook ]; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace 'version = "0.0.0"' 'version = "${version}"' \ - --replace " --cov=mcstatus --cov-append --cov-branch --cov-report=term-missing -vvv --no-cov-on-fail" "" \ - --replace 'asyncio-dgram = "2.1.2"' 'asyncio-dgram = ">=2.1.2"' \ - --replace 'dnspython = "2.2.1"' 'dnspython = ">=2.2.0"' - ''; - pythonImportsCheck = [ "mcstatus" ];