Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 53 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354{ buildPythonPackage, fetchPypi, hypothesis, lib, nix-update-script, pytestCheckHook, pythonOlder, rustPlatform,}:
buildPythonPackage rec { pname = "jsonschema-rs"; version = "0.32.0";
pyproject = true;
disabled = pythonOlder "3.8";
# Fetching from Pypi, because there is no Cargo.lock in the GitHub repo. src = fetchPypi { inherit version; pname = "jsonschema_rs"; hash = "sha256-BQDPoBn6WNwaxS1gWSol021My7Oiz0DIspHujY9/7Mc="; };
cargoDeps = rustPlatform.fetchCargoVendor { inherit pname version src; hash = "sha256-MbIBiV0xOKvDrQPnovTLgGgvdJIHPw19faJFmMqWIMw="; };
nativeBuildInputs = with rustPlatform; [ cargoSetupHook maturinBuildHook ];
nativeCheckInputs = [ hypothesis pytestCheckHook ];
pythonImportsCheck = [ "jsonschema_rs" ];
passthru.updateScript = nix-update-script { };
meta = { description = "High-performance JSON Schema validator for Python"; homepage = "https://github.com/Stranger6667/jsonschema/tree/master/crates/jsonschema-py"; changelog = "https://github.com/Stranger6667/jsonschema/blob/python-v${version}/crates/jsonschema-py/CHANGELOG.md"; license = lib.licenses.mit; teams = [ lib.teams.apm ]; };}