Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.8 kB · 101 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102{ lib, attrs, buildPythonPackage, fetchPypi, hatch-fancy-pypi-readme, hatch-vcs, hatchling, importlib-resources, jsonschema-specifications, pkgutil-resolve-name, pip, pytestCheckHook, pythonOlder, referencing, rpds-py,
# optionals fqdn, idna, isoduration, jsonpointer, rfc3339-validator, rfc3986-validator, rfc3987, uri-template, webcolors,}:
buildPythonPackage rec { pname = "jsonschema"; version = "4.23.0"; pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi { inherit pname version; hash = "sha256-1xSX/vJjUaMyZTN/p3/+uCQj8+ohKDzZRnuwOZkma8Q="; };
postPatch = '' patchShebangs json/bin/jsonschema_suite '';
build-system = [ hatch-fancy-pypi-readme hatch-vcs hatchling ];
dependencies = [ attrs jsonschema-specifications referencing rpds-py ] ++ lib.optionals (pythonOlder "3.9") [ importlib-resources pkgutil-resolve-name ];
optional-dependencies = { format = [ fqdn idna isoduration jsonpointer rfc3339-validator rfc3987 uri-template webcolors ]; format-nongpl = [ fqdn idna isoduration jsonpointer rfc3339-validator rfc3986-validator uri-template webcolors ]; };
nativeCheckInputs = [ pip pytestCheckHook ];
pythonImportsCheck = [ "jsonschema" ];
meta = with lib; { description = "Implementation of JSON Schema validation"; homepage = "https://github.com/python-jsonschema/jsonschema"; changelog = "https://github.com/python-jsonschema/jsonschema/blob/v${version}/CHANGELOG.rst"; license = licenses.mit; maintainers = with maintainers; [ ]; mainProgram = "jsonschema"; };}