diff options
Diffstat (limited to 'pkgs/development/python-modules/mcuuid/default.nix')
-rw-r--r-- | pkgs/development/python-modules/mcuuid/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/mcuuid/default.nix b/pkgs/development/python-modules/mcuuid/default.nix new file mode 100644 index 00000000000..39236f792be --- /dev/null +++ b/pkgs/development/python-modules/mcuuid/default.nix @@ -0,0 +1,36 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, requests +}: + +buildPythonPackage rec { + pname = "mcuuid"; + version = "1.1.0"; + format = "setuptools"; + + src = fetchFromGitHub { + owner = "clerie"; + repo = "mcuuid"; + rev = "refs/tags/${version}"; + hash = "sha256-YwM7CdZVXpUXKXUzFL3AtoDhekLDIvZ/q8taLsHihNk="; + }; + + propagatedBuildInputs = [ + requests + ]; + + # upstream code does not provide tests + doCheck = false; + + pythonImportsCheck = [ + "mcuuid" + ]; + + meta = with lib; { + description = "Getting Minecraft player information from Mojang API"; + homepage = "https://github.com/clerie/mcuuid"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ clerie ]; + }; +} |