1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6 pytestCheckHook,
7 urllib3,
8 certifi,
9 python-dateutil,
10 six,
11}:
12
13buildPythonPackage rec {
14 pname = "kalshi-python";
15 version = "2.0.0";
16 pyproject = true;
17
18 src = fetchPypi {
19 inherit version;
20 pname = "kalshi_python";
21 hash = "sha256-ybO7O+rxS3rSo6GN/FZC/BhSnlfH5/+TpJkSxhRBYYw=";
22 };
23
24 dependencies = [
25 urllib3
26 certifi
27 python-dateutil
28 six
29 ];
30
31 build-system = [ setuptools ];
32
33 nativeCheckInputs = [
34 pytestCheckHook
35 ];
36
37 pythonImportsCheck = [
38 "kalshi_python"
39 ];
40
41 meta = {
42 description = "Official python SDK for algorithmic trading on Kalshi";
43 homepage = "https://github.com/Kalshi/kalshi-python";
44 license = lib.licenses.asl20;
45 maintainers = with lib.maintainers; [ robbiebuxton ];
46 };
47}