Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.6 kB · 80 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081{ lib, buildPythonPackage, pythonOlder, fetchFromGitHub, hatchling, numpy, typeguard, typing-extensions, cloudpickle, equinox, ipython, jax, jaxlib, pytestCheckHook, tensorflow, torch}:
let self = buildPythonPackage rec { pname = "jaxtyping"; version = "0.2.25"; pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub { owner = "google"; repo = "jaxtyping"; rev = "refs/tags/v${version}"; hash = "sha256-+JqpI5xrM7o73LG6oMix88Jr5aptmWYjJQcqUNo7icg="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace "typeguard>=2.13.3,<3" "typeguard" '';
nativeBuildInputs = [ hatchling ];
propagatedBuildInputs = [ numpy typeguard typing-extensions ];
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 ]; }; }; in self