Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
updated files
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexPatrie committed Mar 4, 2024
1 parent 32df84a commit 8bddbde
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions biosimulator_processes/data_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,24 @@ def check_value(cls, v):
pass


class DependencyFile(BaseModel):
name: str
hash: str


class InstallationDependency(BaseModel):
name: str
version: str
markers: str = Field(default='') # ie: "markers": "platform_system == \"Windows\""
files: List[DependencyFile] = Field(default=[])


class Simulator(BaseModel):
name: str # name installed by pip
version: str
deps: List[InstallationDependency]


# Non-Pydantic FromDict classes
class FromDict(dict):
def __init__(self, value: Dict):
Expand Down

0 comments on commit 8bddbde

Please sign in to comment.