From 37ce0679d9017e85eec0e688bd1792f781c3a64f Mon Sep 17 00:00:00 2001 From: Robbie Buxton Date: Tue, 29 Oct 2024 21:10:19 +1100 Subject: [PATCH] python312Packages.kalshi-python: init at 2.0.0 Signed-off-by: Robbie Buxton --- .../python-modules/kalshi-python/default.nix | 47 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 49 insertions(+) create mode 100644 pkgs/development/python-modules/kalshi-python/default.nix diff --git a/pkgs/development/python-modules/kalshi-python/default.nix b/pkgs/development/python-modules/kalshi-python/default.nix new file mode 100644 index 0000000000000..80d31d760aeb6 --- /dev/null +++ b/pkgs/development/python-modules/kalshi-python/default.nix @@ -0,0 +1,47 @@ +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + pytestCheckHook, + urllib3, + certifi, + python-dateutil, + six, +}: + +buildPythonPackage rec { + pname = "kalshi-python"; + version = "2.0.0"; + pyproject = true; + + src = fetchPypi { + inherit version; + pname = "kalshi_python"; + hash = "sha256-ybO7O+rxS3rSo6GN/FZC/BhSnlfH5/+TpJkSxhRBYYw="; + }; + + dependencies = [ + urllib3 + certifi + python-dateutil + six + ]; + + build-system = [ setuptools ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "kalshi_python" + ]; + + meta = { + description = "Official python SDK for algorithmic trading on Kalshi."; + homepage = "https://github.com/Kalshi/kalshi-python"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ robbiebuxton ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 95269c23ce578..61ac7039e6e63 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6721,6 +6721,8 @@ self: super: with self; { kaleido = callPackage ../development/python-modules/kaleido { }; + kalshi-python = callPackage ../development/python-modules/kalshi-python {}; + kanidm = callPackage ../development/python-modules/kanidm { }; kaptan = callPackage ../development/python-modules/kaptan { };