python3Packages.mcstatus: init at 5.1.1
This commit is contained in:
parent
0fe18bce74
commit
37147ed3d8
49
pkgs/development/python-modules/mcstatus/default.nix
Normal file
49
pkgs/development/python-modules/mcstatus/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user