From 67794d04f7b2944e0ad26fda15342d7501efe36e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 25 Jun 2021 20:53:37 +0200 Subject: [PATCH] python3Packages.pykrakenapi: init at 0.2.1 --- .../python-modules/pykrakenapi/default.nix | 36 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/development/python-modules/pykrakenapi/default.nix diff --git a/pkgs/development/python-modules/pykrakenapi/default.nix b/pkgs/development/python-modules/pykrakenapi/default.nix new file mode 100644 index 000000000000..e3620e7de6ad --- /dev/null +++ b/pkgs/development/python-modules/pykrakenapi/default.nix @@ -0,0 +1,36 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, krakenex +, pandas +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "pykrakenapi"; + version = "0.2.1"; + + src = fetchFromGitHub { + owner = "dominiktraxl"; + repo = "pykrakenapi"; + rev = "v${version}"; + sha256 = "0byqa4qk6a8ww1y822izpcfscv4frcfjysw6lx1pqyqjr23bfnbh"; + }; + + propagatedBuildInputs = [ + krakenex + pandas + ]; + + # tests require network connection + doCheck = false; + + pythonImportsCheck = [ "pykrakenapi" ]; + + meta = with lib; { + description = "Python implementation of the Kraken API"; + homepage = "https://github.com/dominiktraxl/pykrakenapi"; + license = licenses.lgpl3Plus; + maintainers = with maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 33801cbfe0ac..81cdadc986bf 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5311,6 +5311,8 @@ in { pyisy = callPackage ../development/python-modules/pyisy { }; + pykrakenapi = callPackage ../development/python-modules/pykrakenapi { }; + pynndescent = callPackage ../development/python-modules/pynndescent { }; pynobo = callPackage ../development/python-modules/pynobo { };