17 pname = "torchmetrics";
21 inherit pname version;
23 src = fetchFromGitHub {
24 owner = "PyTorchLightning";
26 rev = "refs/tags/v${version}";
27 hash = "sha256-L2p8UftRkuBuRJX4V5+OYkJeJ5pCK3MvfA1OvSfgglY=";
30 propagatedBuildInputs = [
35 # Let the user bring their own instance
49 # A cyclic dependency in: integrations/test_lightning.py
51 passthru.tests.check = torchmetrics.overridePythonAttrs (_: {
56 # These require too many "leftpad-level" dependencies
61 # A few non-deterministic things like test_check_compute_groups_is_faster
62 "tests/bases/test_collections.py"
65 pythonImportsCheck = [
70 description = "Machine learning metrics for distributed, scalable PyTorch applications (used in pytorch-lightning)";
71 homepage = "https://torchmetrics.readthedocs.io";
72 license = licenses.asl20;
73 maintainers = with maintainers; [