22 buildPythonPackage rec {
27 src = fetchFromGitHub {
28 owner = "huggingface";
29 repo = "pytorch-image-models";
30 rev = "refs/tags/v${version}";
31 hash = "sha256-+e4+k1Oyxf94rLsOTWfMl5YWTteXgSoecvbyxL348kg=";
34 build-system = [ pdm-backend ];
50 pytestFlagsArray = [ "tests" ];
53 # Takes too long and also tries to download models
54 "tests/test_models.py"
58 # AttributeError: 'Lookahead' object has no attribute '_optimizer_step_pre...
62 pythonImportsCheck = [
68 description = "PyTorch image models, scripts, and pretrained weights";
69 homepage = "https://huggingface.co/docs/timm/index";
70 changelog = "https://github.com/huggingface/pytorch-image-models/blob/v${version}/README.md#whats-new";
71 license = lib.licenses.asl20;
72 maintainers = with lib.maintainers; [ bcdarwin ];