python3Packages.mcstatus: init at 5.1.1

This commit is contained in:
Fabian Affolter 2021-02-19 15:56:51 +01:00
parent 0fe18bce74
commit 37147ed3d8
2 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,49 @@
{ lib
, asyncio-dgram
, buildPythonPackage
, click
, dnspython
, fetchFromGitHub
, mock
, pytestCheckHook
, pythonOlder
, six
}:
buildPythonPackage rec {
pname = "mcstatus";
version = "5.1.1";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "Dinnerbone";
repo = pname;
rev = "release-${version}";
sha256 = "1a3qrl6w76ayqkl1knaz5ai0brrzpjfdk33lyb1n1p7gnc73nhlr";
};
propagatedBuildInputs = [
asyncio-dgram
click
dnspython
six
];
checkInputs = [
mock
pytestCheckHook
];
postPatch = ''
substituteInPlace requirements.txt --replace "dnspython3" "dnspython"
'';
pythonImportsCheck = [ "mcstatus" ];
meta = with lib; {
description = "Python library for checking the status of Minecraft servers";
homepage = "https://github.com/Dinnerbone/mcstatus";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}

View file

@ -4006,6 +4006,8 @@ in {
mccabe = callPackage ../development/python-modules/mccabe { };
mcstatus = callPackage ../development/python-modules/mcstatus { };
MDP = callPackage ../development/python-modules/mdp { };
measurement = callPackage ../development/python-modules/measurement { };