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:
parent
4dddefac11
commit
2ede5166ef
|
@ -4,16 +4,16 @@
|
||||||
, click
|
, click
|
||||||
, dnspython
|
, dnspython
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, mock
|
|
||||||
, poetry-core
|
, poetry-core
|
||||||
, pytest-asyncio
|
, pytest-asyncio
|
||||||
|
, pytest-rerunfailures
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "mcstatus";
|
pname = "mcstatus";
|
||||||
version = "10.0.3";
|
version = "11.0.0";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
@ -22,9 +22,15 @@ buildPythonPackage rec {
|
||||||
owner = "py-mine";
|
owner = "py-mine";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "refs/tags/v${version}";
|
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 = [
|
nativeBuildInputs = [
|
||||||
poetry-core
|
poetry-core
|
||||||
];
|
];
|
||||||
|
@ -36,19 +42,11 @@ buildPythonPackage rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
mock
|
|
||||||
pytest-asyncio
|
pytest-asyncio
|
||||||
|
pytest-rerunfailures
|
||||||
pytestCheckHook
|
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 = [
|
pythonImportsCheck = [
|
||||||
"mcstatus"
|
"mcstatus"
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue