noseyparker: 0.12.0 -> 0.18.1

This commit is contained in:
Elliot Cameron 2024-07-24 14:19:21 -04:00
parent 4c28478d2f
commit a0e4fc38b6

View File

@ -1,38 +1,50 @@
{ lib
, rustPlatform
, fetchFromGitHub
, boost
, cmake
, pkg-config
, openssl
, git
, hyperscan
, openssl
, pkg-config
}:
rustPlatform.buildRustPackage rec {
pname = "noseyparker";
version = "0.12.0";
version = "0.18.1";
src = fetchFromGitHub {
owner = "praetorian-inc";
repo = "noseyparker";
rev = "v${version}";
hash = "sha256-qop6KjTFPQ5o1kPEVPP0AfDfr8w/JP3YmC+sb5OUbDY=";
hash = "sha256-IorJWXhS1ZUye1wKPnGb+zx/YgfXhwi3cb/V3zpYaKY=";
};
cargoHash = "sha256-ZtoJO/R11qTFYAE6G7AVCpnYZ3JGrxtVSXvCm0W8DAA=";
cargoHash = "sha256-xf70RKPZY96oUuifBC0mg5lV0MjGpzR2qDQbNJMSYtM=";
postPatch = ''
# disabledTests (network, failing)
rm tests/test_noseyparker_github.rs
rm tests/test_noseyparker_scan.rs
'';
nativeCheckInputs = [
git
];
checkFlags = [
# These tests expect access to network to clone and use GitHub API
"--skip=github::github_repos_list_multiple_user_dedupe_jsonl_format"
"--skip=github::github_repos_list_org_badtoken"
"--skip=github::github_repos_list_user_badtoken"
"--skip=github::github_repos_list_user_human_format"
"--skip=github::github_repos_list_user_json_format"
"--skip=github::github_repos_list_user_jsonl_format"
"--skip=scan::appmaker::scan_workflow_from_git_url"
];
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
openssl
boost
hyperscan
openssl
];
OPENSSL_NO_VENDOR = 1;