Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677{ lib, buildPythonPackage, fetchPypi, pythonOlder, hatchling, bittensor-core, eth-account, qrcode, rich, typer, typing-extensions, websockets, cryptography, hypothesis, pytest-asyncio, pytestCheckHook, versionCheckHook, writableTmpDirAsHomeHook,}:
buildPythonPackage (finalAttrs: { pname = "bittensor"; version = "11.1.0"; pyproject = true;
__structuredAttrs = true;
src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-l75+nVI8o22T7dx7ljGLQqe72VErU8dXxYB6fa+0Nx0="; };
pythonRelaxDeps = [ "websockets" ];
build-system = [ hatchling ];
dependencies = [ bittensor-core eth-account qrcode rich typer websockets ] ++ lib.optionals (pythonOlder "3.11") [ typing-extensions ];
nativeCheckInputs = [ cryptography hypothesis pytest-asyncio pytestCheckHook versionCheckHook writableTmpDirAsHomeHook ];
versionCheckProgramArg = "--version";
pythonImportsCheck = [ "bittensor" ];
disabledTests = [ # InvalidHeaderValue "test_handshake_diagnostics_strip_terminal_controls" ];
__darwinAllowLocalNetworking = true;
meta = { description = "Python SDK and command line client for the Bittensor chain"; homepage = "https://github.com/RaoFoundation/subtensor"; changelog = "https://pypi.org/project/bittensor/${finalAttrs.version}/"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ kilyanni ]; mainProgram = "btcli"; };})