Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849{ lib, buildPythonPackage, fetchPypi, msgpack, numpy, python, setuptools,}:
buildPythonPackage (finalAttrs: { pname = "msgpack-numpy-opentensor"; version = "0.5.0"; pyproject = true;
__structuredAttrs = true;
# The GitHub repo does not tag the same releases as PyPi, so we use PyPi directly instead. src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-ITIywg4u/VKOyKmIK2Beith8/DW1ffz+/gXTOqqr5XQ="; };
build-system = [ setuptools ];
dependencies = [ msgpack numpy ];
checkPhase = '' runHook preCheck
${python.interpreter} tests.py
runHook postCheck '';
meta = { description = "Numpy data serialization using msgpack (opentensor fork)"; homepage = "https://github.com/opentensor/msgpack-numpy"; changelog = "https://pypi.org/project/msgpack-numpy-opentensor/${finalAttrs.version}"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ kilyanni ]; };})