56 lines
1.0 KiB
Nix
56 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
boto3,
|
|
requests,
|
|
setuptools,
|
|
python,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "metaflow";
|
|
version = "2.17.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Netflix";
|
|
repo = "metaflow";
|
|
tag = version;
|
|
hash = "sha256-SOXgIAdbpnAnxxU4fxXd65EoAcJVdCS/owScjb/bBTk=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
];
|
|
|
|
dependencies = [
|
|
boto3
|
|
requests
|
|
];
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
|
|
export HOME="$TMPDIR"
|
|
export USER="metaflow-test-user"
|
|
|
|
pushd test/core
|
|
${python.interpreter} run_tests.py --num-parallel $NIX_BUILD_CORES \
|
|
--tests FlowOptionsTest,BasicLogTest
|
|
popd
|
|
|
|
runHook postCheck
|
|
'';
|
|
|
|
pythonImportsCheck = [ "metaflow" ];
|
|
|
|
meta = {
|
|
description = "Open Source AI/ML Platform";
|
|
homepage = "https://metaflow.org/";
|
|
changelog = "https://github.com/Netflix/metaflow/releases/tag/${src.tag}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ kr7x ];
|
|
};
|
|
}
|