qsv: 0.131.1 -> 0.138.0, build simplification (#356504)

This commit is contained in:
Weijia Wang 2024-11-19 21:33:50 +01:00 committed by GitHub
commit e9398b57e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 43 additions and 7866 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,4 @@
{
darwin,
fetchFromGitHub,
file,
lib,
@ -12,7 +11,7 @@
let
pname = "qsv";
version = "0.131.1";
version = "0.138.0";
in
rustPlatform.buildRustPackage {
inherit pname version;
@ -21,37 +20,17 @@ rustPlatform.buildRustPackage {
owner = "jqnatividad";
repo = "qsv";
rev = version;
hash = "sha256-erXMDZBkOPnZdhhjnUTiS0eCuFo1v5sNhLn8o7QN/5g=";
hash = "sha256-27oSk8fnTvl1zJ8xYkZHkWVTq+AVDn4Zi1s56T49T1Q=";
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"calamine-0.25.0" = "sha256-LFQahQ+SfGWhp5Kfs7AJCj4zyxWiz099pwVuQucCF00=";
"dynfmt-0.1.5" = "sha256-/SrNOOQJW3XFZOPL/mzdOBppVCaJNNyGBuJumQGx6sA=";
"grex-1.4.5" = "sha256-4Tr5L87HuiUW8tJdqr4oT1yQXviU7XtDrKY7iYNcwbo=";
"local-encoding-0.2.0" = "sha256-ThXYKr3u/n2kvINcyobB2Ayex2sNbJEOyyjZH993Z4U=";
"polars-0.41.3" = "sha256-8xkcJgfKo7BzeBnR6XVdbcH9ZY9Kh4dcGFMmyA5LuQg=";
};
};
useFetchCargoVendor = true;
cargoHash = "sha256-tu9HCFAxmmYVgmJyHunBtGSqKGzwbX2vi6ju4cv33wc=";
buildInputs =
[
file
sqlite
zstd
]
++ lib.optionals stdenv.hostPlatform.isDarwin (
with darwin.apple_sdk.frameworks;
[
AppKit
CoreFoundation
CoreGraphics
IOKit
Security
SystemConfiguration
]
);
buildInputs = [
file
sqlite
zstd
];
nativeBuildInputs = [
pkg-config
@ -75,27 +54,40 @@ rustPlatform.buildRustPackage {
"geocode"
];
checkFlags = [
# Skip tests that require network access.
"--skip test_fetch"
"--skip test_geocode"
"--skip cmd::validate::test_load_json_via_url"
"--skip test_describegpt::describegpt_invalid_api_key"
"--skip test_sample::sample_seed_url"
"--skip test_snappy::snappy_decompress_url"
"--skip test_sniff::sniff_justmime_remote"
"--skip test_sniff::sniff_url_notcsv"
"--skip test_sniff::sniff_url_snappy"
"--skip test_sniff::sniff_url_snappy_noinfer"
"--skip test_validate::validate_adur_public_toilets_dataset_with_json_schema_url"
# Skip test that uses sh.
"--skip test_foreach::foreach_multiple_commands_with_shell_script"
# Skip features that aren't enabled.
"--skip test_luau"
# Skip tests that return the wrong datetime in CI.
"--skip test_stats::stats_cache_negative_threshold"
"--skip test_stats::stats_cache_negative_threshold_five"
];
checkFlags =
[
# Skip tests that require network access.
"--skip test_fetch"
"--skip test_geocode"
"--skip cmd::validate::test_load_json_via_url"
"--skip cmd::validate::test_dyn_enum_validator"
"--skip cmd::validate::test_validate_currency_email_dynamicenum_validator"
"--skip test_describegpt::describegpt_invalid_api_key"
"--skip test_sample::sample_seed_url"
"--skip test_snappy::snappy_decompress_url"
"--skip test_sniff::sniff_justmime_remote"
"--skip test_sniff::sniff_url_notcsv"
"--skip test_sniff::sniff_url_snappy"
"--skip test_sniff::sniff_url_snappy_noinfer"
"--skip test_validate::validate_adur_public_toilets_dataset_with_json_schema_url"
"--skip test_schema::generate_schema_with_const_and_enum_constraints"
"--skip test_schema::generate_schema_with_defaults_and_validate_trim_with_no_errors"
"--skip test_schema::generate_schema_with_optional_flags_notrim_and_validate_with_errors"
"--skip test_schema::generate_schema_with_optional_flags_trim_and_validate_with_errors"
"--skip test_validate::validate_adur_public_toilets_dataset_with_json_schema"
"--skip test_validate::validate_adur_public_toilets_dataset_with_json_schema_valid_output"
# Skip test that uses sh.
"--skip test_foreach::foreach_multiple_commands_with_shell_script"
# Skip features that aren't enabled.
"--skip test_luau"
# Skip tests that return the wrong datetime in CI.
"--skip test_stats::stats_cache_negative_threshold"
"--skip test_stats::stats_cache_negative_threshold_five"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
# uses X11 based clipboard library
"--skip test_clipboard::clipboard_success"
];
env = {
ZSTD_SYS_USE_PKG_CONFIG = true;