1{ lib 2, buildPythonPackage 3, dvc 4, dvc-studio-client 5, fetchFromGitHub 6, funcy 7, pytestCheckHook 8, pythonOlder 9, ruamel-yaml 10, scmrepo 11, setuptools-scm 12, tabulate 13}: 14 15buildPythonPackage rec { 16 pname = "dvclive"; 17 version = "3.3.1"; 18 format = "pyproject"; 19 20 disabled = pythonOlder "3.8"; 21 22 src = fetchFromGitHub { 23 owner = "iterative"; 24 repo = pname; 25 rev = "refs/tags/${version}"; 26 hash = "sha256-esvDCAsGoaB4t4hiTmoQa69Sgg5crqJyiom/iXxpZow="; 27 }; 28 29 SETUPTOOLS_SCM_PRETEND_VERSION = version; 30 31 nativeBuildInputs = [ 32 setuptools-scm 33 ]; 34 35 propagatedBuildInputs = [ 36 dvc 37 dvc-studio-client 38 funcy 39 ruamel-yaml 40 scmrepo 41 ]; 42 43 # Circular dependency with dvc 44 doCheck = false; 45 46 pythonImportsCheck = [ 47 "dvclive" 48 ]; 49 50 meta = with lib; { 51 description = "Library for logging machine learning metrics and other metadata in simple file formats"; 52 homepage = "https://github.com/iterative/dvclive"; 53 changelog = "https://github.com/iterative/dvclive/releases/tag/${version}"; 54 license = licenses.asl20; 55 maintainers = with maintainers; [ fab ]; 56 }; 57}