nixpkgs/pkgs/development/python-modules/dvclive/default.nix
2023-01-05 01:09:00 +01:00

48 lines
951 B
Nix

{ lib
, buildPythonPackage
, dvc-render
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, setuptools
, tabulate
}:
buildPythonPackage rec {
pname = "dvclive";
version = "1.3.0";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "iterative";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-FAupTvaOLPp5EQ0vvE8tQCa8WnKW/qrQTc7i+6F7F1A=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
dvc-render
tabulate # will be available as dvc-render.optional-dependencies.table
];
# Circular dependency with dvc
doCheck = false;
pythonImportsCheck = [
"dvclive"
];
meta = with lib; {
description = "Library for logging machine learning metrics and other metadata in simple file formats";
homepage = "https://github.com/iterative/dvclive";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}