1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 hatchling, 6 dparse, 7 packaging, 8 pydantic, 9 ruamel-yaml, 10 typing-extensions, 11}: 12 13buildPythonPackage rec { 14 pname = "safety-schemas"; 15 version = "0.0.16"; 16 pyproject = true; 17 18 src = fetchPypi { 19 pname = "safety_schemas"; 20 inherit version; 21 hash = "sha256-O7BNEb1LXMefn6GDxlimqM+CepzuxEOl/6bu04pQok4="; 22 }; 23 24 postPatch = '' 25 substituteInPlace pyproject.toml \ 26 --replace hatchling==1.26.3 hatchling 27 ''; 28 29 build-system = [ hatchling ]; 30 31 pythonRelaxDeps = [ 32 "pydantic" 33 ]; 34 35 dependencies = [ 36 dparse 37 packaging 38 pydantic 39 ruamel-yaml 40 typing-extensions 41 ]; 42 43 pythonImportsCheck = [ "safety_schemas" ]; 44 45 # upstream has no tests 46 doCheck = false; 47 48 meta = { 49 description = "Schemas for Safety CLI"; 50 homepage = "https://pypi.org/project/safety-schemas/"; 51 license = lib.licenses.mit; 52 maintainers = with lib.maintainers; [ dotlambda ]; 53 }; 54}