Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 85 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586{ argcomplete, black, buildPythonPackage, fetchFromGitHub, freezegun, genson, graphql-core, httpx, inflect, isort, jinja2, lib, openapi-spec-validator, packaging, poetry-core, poetry-dynamic-versioning, prance, pytest-mock, pytestCheckHook, pydantic, pyyaml, toml,}:
buildPythonPackage rec { pname = "datamodel-code-generator"; version = "0.26.5"; pyproject = true;
src = fetchFromGitHub { owner = "koxudaxi"; repo = "datamodel-code-generator"; tag = version; hash = "sha256-CYNEpQFIWR7i7I7YJ5q/34KNhtQ7cjya97Z0fyeO5g8="; };
pythonRelaxDeps = [ "inflect" "isort" ];
build-system = [ poetry-core poetry-dynamic-versioning ];
dependencies = [ argcomplete black genson graphql-core httpx inflect isort jinja2 openapi-spec-validator packaging pydantic pyyaml toml ];
nativeCheckInputs = [ freezegun prance pytest-mock pytestCheckHook ];
pythonImportsCheck = [ "datamodel_code_generator" ];
disabledTests = [ # remote testing, name resolution failure. "test_openapi_parser_parse_remote_ref" ];
meta = { description = "Pydantic model and dataclasses.dataclass generator for easy conversion of JSON, OpenAPI, JSON Schema, and YAML data sources"; homepage = "https://github.com/koxudaxi/datamodel-code-generator"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ tochiaha ]; mainProgram = "datamodel-code-generator"; };}