Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 75 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576{ lib, buildPythonPackage, fetchFromGitHub,
# build-system hatchling,
# dependencies wadler-lindig,
# tests cloudpickle, equinox, ipython, jax, jaxlib, pytestCheckHook, tensorflow, torch,}:
let self = buildPythonPackage rec { pname = "jaxtyping"; version = "0.3.2"; pyproject = true;
src = fetchFromGitHub { owner = "google"; repo = "jaxtyping"; tag = "v${version}"; hash = "sha256-zRuTOt9PqFGDZbSGvkzxIWIi3z+vU0FmAEecPRcGy2w="; };
build-system = [ hatchling ];
dependencies = [ wadler-lindig ];
pythonImportsCheck = [ "jaxtyping" ];
nativeCheckInputs = [ cloudpickle equinox ipython jax jaxlib pytestCheckHook tensorflow torch ];
doCheck = false;
# Enable tests via passthru to avoid cyclic dependency with equinox. passthru.tests = { check = self.overridePythonAttrs { # We disable tests because they complain about the version of typeguard being too new. doCheck = false; catchConflicts = false; }; };
meta = { description = "Type annotations and runtime checking for JAX arrays and PyTrees"; homepage = "https://github.com/google/jaxtyping"; changelog = "https://github.com/patrick-kidger/jaxtyping/releases/tag/v${version}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ GaetanLepage ]; }; };inself