depot/third_party/nixpkgs/pkgs/development/python-modules/dvclive/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

55 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, dvc
, dvc-studio-client
, fetchFromGitHub
, funcy
, pytestCheckHook
, pythonOlder
, ruamel-yaml
, scmrepo
, setuptools-scm
, tabulate
}:
buildPythonPackage rec {
pname = "dvclive";
version = "3.5.1";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "iterative";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-QsA8HZ6wIWKvtQ+f3nyRKKZRNJS56eZ1sKw+KNHxfXc=";
};
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
dvc
dvc-studio-client
funcy
ruamel-yaml
scmrepo
];
# 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";
changelog = "https://github.com/iterative/dvclive/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}