Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.6 kB · 81 lines
Nix
at llvm-cleanup
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182{ lib, buildPythonPackage, pythonOlder, fetchFromGitHub, hatchling, pythonRelaxDepsHook, numpy, typeguard, typing-extensions, cloudpickle, equinox, ipython, jax, jaxlib, pytestCheckHook, tensorflow, torch,}:
let self = buildPythonPackage rec { pname = "jaxtyping"; version = "0.2.28"; pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub { owner = "google"; repo = "jaxtyping"; rev = "refs/tags/v${version}"; hash = "sha256-xDFrgPecUIfCACg/xkMQ8G1+6hNiUUDg9eCZKNpNfzs="; };
nativeBuildInputs = [ hatchling pythonRelaxDepsHook ];
propagatedBuildInputs = [ numpy typeguard typing-extensions ];
pythonRelaxDeps = [ "typeguard" ];
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; }; };
pythonImportsCheck = [ "jaxtyping" ];
meta = with lib; { description = "Type annotations and runtime checking for JAX arrays and PyTrees"; homepage = "https://github.com/google/jaxtyping"; license = licenses.mit; maintainers = with maintainers; [ GaetanLepage ]; }; };inself