2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonAtLeast,
|
|
|
|
fetchFromGitHub,
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
# propagates
|
|
|
|
pyyaml,
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
# optionals
|
|
|
|
boto3,
|
|
|
|
botocore,
|
|
|
|
google-cloud-dataproc,
|
|
|
|
google-cloud-logging,
|
|
|
|
google-cloud-storage,
|
|
|
|
python-rapidjson,
|
|
|
|
simplejson,
|
|
|
|
ujson,
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
# tests
|
|
|
|
pyspark,
|
|
|
|
unittestCheckHook,
|
|
|
|
warcio,
|
2023-01-20 10:41:00 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mrjob";
|
|
|
|
version = "0.7.4";
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
# https://github.com/Yelp/mrjob/issues/2222
|
|
|
|
disabled = pythonAtLeast "3.12";
|
2023-01-20 10:41:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Yelp";
|
|
|
|
repo = "mrjob";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-Yp4yUx6tkyGB622I9y+AWK2AkIDVGKQPMM+LtB/M3uo=";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ pyyaml ];
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
optional-dependencies = {
|
2023-01-20 10:41:00 +00:00
|
|
|
aws = [
|
|
|
|
boto3
|
|
|
|
botocore
|
|
|
|
];
|
|
|
|
google = [
|
|
|
|
google-cloud-dataproc
|
|
|
|
google-cloud-logging
|
|
|
|
google-cloud-storage
|
|
|
|
];
|
2024-06-05 15:53:02 +00:00
|
|
|
rapidjson = [ python-rapidjson ];
|
|
|
|
simplejson = [ simplejson ];
|
|
|
|
ujson = [ ujson ];
|
2023-01-20 10:41:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = false; # failing tests
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-01-20 10:41:00 +00:00
|
|
|
pyspark
|
|
|
|
unittestCheckHook
|
|
|
|
warcio
|
2024-10-04 16:56:33 +00:00
|
|
|
] ++ lib.flatten (builtins.attrValues optional-dependencies);
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
unittestFlagsArray = [ "-v" ];
|
2023-01-20 10:41:00 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
changelog = "https://github.com/Yelp/mrjob/blob/v${version}/CHANGES.txt";
|
|
|
|
description = "Run MapReduce jobs on Hadoop or Amazon Web Services";
|
|
|
|
homepage = "https://github.com/Yelp/mrjob";
|
|
|
|
license = licenses.asl20;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2023-01-20 10:41:00 +00:00
|
|
|
};
|
|
|
|
}
|