From 5c88d25630054cfd067219f704ed79969c7696a7 Mon Sep 17 00:00:00 2001 From: IvarWithoutBones Date: Mon, 12 Apr 2021 22:35:55 +0200 Subject: [PATCH] pythonPackages.amiibo-py: init at unstable-2021-01-16 --- .../python-modules/amiibo-py/default.nix | 35 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/development/python-modules/amiibo-py/default.nix diff --git a/pkgs/development/python-modules/amiibo-py/default.nix b/pkgs/development/python-modules/amiibo-py/default.nix new file mode 100644 index 000000000000..5fb70397fa71 --- /dev/null +++ b/pkgs/development/python-modules/amiibo-py/default.nix @@ -0,0 +1,35 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pythonOlder +, aiohttp +, requests +}: + +buildPythonPackage rec { + pname = "amiibo-py"; + version = "unstable-2021-01-16"; + disabled = pythonOlder "3.5.3"; # Older versions are not supported upstream + + src = fetchFromGitHub { + owner = "XiehCanCode"; + repo = "amiibo.py"; + rev = "4766037530f41ad11368240e994888d196783b83"; + sha256 = "0ln8ykaws8c5fvzlzccn60mpbdbvxlhkp3nsvs2xqdbsqp270yv2"; + }; + + propagatedBuildInputs = [ + aiohttp + requests + ]; + + doCheck = false; # No tests are available upstream + pythonImportsCheck = [ "amiibo" ]; + + meta = with lib; { + description = "API Wrapper for amiiboapi.com"; + homepage = "https://github.com/XiehCanCode/amiibo.py"; + license = licenses.mit; + maintainers = [ maintainers.ivar ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 04f95fb3d642..9e4dd92903e5 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -379,6 +379,8 @@ in { amcrest = callPackage ../development/python-modules/amcrest { }; + amiibo-py = callPackage ../development/python-modules/amiibo-py { }; + amply = callPackage ../development/python-modules/amply { }; amqp = callPackage ../development/python-modules/amqp { };