Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / dvclive / default.nix
blob628afaaac4ddc6368dc07bf4f3f13614c76da958
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
15 buildPythonPackage rec {
16   pname = "dvclive";
17   version = "3.3.1";
18   format = "pyproject";
20   disabled = pythonOlder "3.8";
22   src = fetchFromGitHub {
23     owner = "iterative";
24     repo = pname;
25     rev = "refs/tags/${version}";
26     hash = "sha256-esvDCAsGoaB4t4hiTmoQa69Sgg5crqJyiom/iXxpZow=";
27   };
29   SETUPTOOLS_SCM_PRETEND_VERSION = version;
31   nativeBuildInputs = [
32     setuptools-scm
33   ];
35   propagatedBuildInputs = [
36     dvc
37     dvc-studio-client
38     funcy
39     ruamel-yaml
40     scmrepo
41   ];
43   # Circular dependency with dvc
44   doCheck = false;
46   pythonImportsCheck = [
47     "dvclive"
48   ];
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   };