Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455{ lib, buildPythonPackage, fetchFromGitHub, setuptools, filelock, modelscope-hub, packaging, requests, tqdm,}:
buildPythonPackage (finalAttrs: { pname = "modelscope"; version = "1.39.1"; pyproject = true;
src = fetchFromGitHub { owner = "modelscope"; repo = "modelscope"; tag = "v${finalAttrs.version}"; hash = "sha256-jG0g7G2cXVNFUB1ItHcC0wJg6Zj0oGkKGLhgHji3sPQ="; };
build-system = [ setuptools ];
dependencies = [ filelock modelscope-hub packaging requests setuptools tqdm ];
doCheck = false; # need network
pythonImportsCheck = [ "modelscope" ];
meta = { description = "Bring the notion of Model-as-a-Service to life"; homepage = "https://github.com/modelscope/modelscope"; license = lib.licenses.asl20; mainProgram = "modelscope"; maintainers = with lib.maintainers; [ kyehn doronbehar ryan4yin ]; knownVulnerabilities = [ "CVE-2026-84202: Unsafe YAML Deserialization in Model Config Loading" ]; };})