Skip to content

Commit

Permalink
python312Packages.kalshi-python: init at 2.0.0
Browse files Browse the repository at this point in the history
Signed-off-by: Robbie Buxton <robbiesbuxton@gmail.com>
  • Loading branch information
RobbieBuxton committed Oct 29, 2024
1 parent b54a912 commit 37ce067
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
47 changes: 47 additions & 0 deletions pkgs/development/python-modules/kalshi-python/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down

0 comments on commit 37ce067

Please sign in to comment.