13 src = fetchFromGitHub {
17 hash = "sha256-OyTehgnjmDALU2qPRL/HrvoAMyIsmYuTKFlOJT8r+Gk=";
21 inherit pname version src;
23 disabled = pythonOlder "3.6";
25 cargoDeps = rustPlatform.fetchCargoTarball {
27 name = "${pname}-${version}";
28 hash = "sha256-fetAE3cj9hh4SoPE72Bqco5ytUMiDqbazeS2MHdUibM=";
31 nativeBuildInputs = with rustPlatform; [ cargoSetupHook maturinBuildHook ];
33 buildInputs = lib.optionals stdenv.isDarwin [
35 darwin.apple_sdk.frameworks.Security
38 pythonImportsCheck = [ "nh3" ];
41 description = "Python binding to Ammonia HTML sanitizer Rust crate";
42 homepage = "https://github.com/messense/nh3";
43 license = licenses.mit;
44 maintainers = with maintainers; [ happysalada ];