Merge pull request #128132 from dotlambda/pykrakenapi-init

home-assistant: support kraken component
This commit is contained in:
Fabian Affolter 2021-06-26 10:46:52 +02:00 committed by GitHub
commit 6925f053c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 75 additions and 1 deletions

View file

@ -0,0 +1,33 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
}:
buildPythonPackage rec {
pname = "krakenex";
version = "2.1.0";
src = fetchFromGitHub {
owner = "veox";
repo = "python3-krakenex";
rev = "v${version}";
sha256 = "0j8qmpk6lm57h80i5njhgvm1qnxllm18dlqxfd4kyxdb93si4z2p";
};
propagatedBuildInputs = [
requests
];
# no tests implemented
doCheck = false;
pythonImportsCheck = [ "krakenex" ];
meta = with lib; {
description = "Kraken.com cryptocurrency exchange API";
homepage = "https://github.com/veox/python3-krakenex";
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ dotlambda ];
};
}

View file

@ -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 ];
};
}

View file

@ -432,7 +432,7 @@
"kodi" = ps: with ps; [ pykodi ];
"konnected" = ps: with ps; [ aiohttp-cors konnected ];
"kostal_plenticore" = ps: with ps; [ ]; # missing inputs: kostal_plenticore
"kraken" = ps: with ps; [ ]; # missing inputs: krakenex pykrakenapi
"kraken" = ps: with ps; [ krakenex pykrakenapi ];
"kulersky" = ps: with ps; [ pykulersky ];
"kwb" = ps: with ps; [ ]; # missing inputs: pykwb
"lacrosse" = ps: with ps; [ pylacrosse ];

View file

@ -495,6 +495,7 @@ in with py.pkgs; buildPythonApplication rec {
"knx"
"kodi"
"konnected"
"kraken"
"kulersky"
"lastfm"
"lcn"

View file

@ -3882,6 +3882,8 @@ in {
korean-lunar-calendar = callPackage ../development/python-modules/korean-lunar-calendar { };
krakenex = callPackage ../development/python-modules/krakenex { };
kubernetes = callPackage ../development/python-modules/kubernetes { };
labelbox = callPackage ../development/python-modules/labelbox { };
@ -5309,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 { };