Files
nixpkgs/pkgs/development/python-modules/mrjob/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

87 lines
1.4 KiB
Nix

{
lib,
buildPythonPackage,
pythonAtLeast,
fetchFromGitHub,
# build-system
setuptools,
# propagates
distutils,
pyyaml,
standard-pipes,
# optionals
boto3,
botocore,
google-cloud-dataproc,
google-cloud-logging,
google-cloud-storage,
python-rapidjson,
simplejson,
ujson,
# tests
pyspark,
unittestCheckHook,
warcio,
}:
buildPythonPackage rec {
pname = "mrjob";
version = "0.7.4";
pyproject = true;
src = fetchFromGitHub {
owner = "Yelp";
repo = "mrjob";
tag = "v${version}";
hash = "sha256-Yp4yUx6tkyGB622I9y+AWK2AkIDVGKQPMM+LtB/M3uo=";
};
build-system = [
setuptools
];
dependencies = [
distutils
pyyaml
standard-pipes
];
optional-dependencies = {
aws = [
boto3
botocore
];
google = [
google-cloud-dataproc
google-cloud-logging
google-cloud-storage
];
rapidjson = [ python-rapidjson ];
simplejson = [ simplejson ];
ujson = [ ujson ];
};
doCheck = false; # failing tests
nativeCheckInputs = [
pyspark
unittestCheckHook
warcio
]
++ lib.concatAttrValues optional-dependencies;
unittestFlagsArray = [ "-v" ];
meta = {
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 = lib.licenses.asl20;
maintainers = [ ];
};
}