14 src = fetchFromGitHub {
18 hash = "sha256-j9OoXAuuCWsBHanN+SzSip94ZA+kY8HUVvfY/omUSSM=";
22 inherit pname version src;
24 disabled = pythonOlder "3.6";
26 cargoDeps = rustPlatform.fetchCargoTarball {
28 name = "${pname}-${version}";
29 hash = "sha256-WomlVzKOUfcgAWGJInSvZn9hm+bFpgc4nJbRiyPCU64=";
32 nativeBuildInputs = with rustPlatform; [
37 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
39 darwin.apple_sdk.frameworks.Security
42 pythonImportsCheck = [ "nh3" ];
45 description = "Python binding to Ammonia HTML sanitizer Rust crate";
46 homepage = "https://github.com/messense/nh3";
47 license = licenses.mit;
48 maintainers = with maintainers; [ happysalada ];