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
This commit is contained in:
Fabian Affolter 2023-07-04 17:25:18 +02:00 committed by Martin Weinelt
parent 4dddefac11
commit 2ede5166ef
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -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"
];