1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pydantic, 6 typing-extensions, 7 uv-build, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "sigstore-models"; 13 version = "0.0.5"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "astral-sh"; 18 repo = "sigstore-models"; 19 tag = "v${version}"; 20 hash = "sha256-zlIZzfgHZPEuiZu3JNX74Cg1jPNaO1HUhMtpxoyOoqk="; 21 }; 22 23 build-system = [ uv-build ]; 24 25 dependencies = [ 26 pydantic 27 typing-extensions 28 ]; 29 30 nativeCheckInputs = [ pytestCheckHook ]; 31 32 pythonImportsCheck = [ "sigstore_models" ]; 33 34 meta = { 35 description = "Pydantic-based, protobuf-free data models for Sigstore"; 36 homepage = "https://github.com/astral-sh/sigstore-models"; 37 changelog = "https://github.com/astral-sh/sigstore-models/releases/tag/${src.tag}"; 38 license = lib.licenses.mit; 39 maintainers = with lib.maintainers; [ fab ]; 40 }; 41}