1{ lib
2, buildPythonPackage
3, dulwich
4, fetchFromGitHub
5, gitpython
6, pythonOlder
7, requests
8, setuptools-scm
9, voluptuous
10}:
11
12buildPythonPackage rec {
13 pname = "dvc-studio-client";
14 version = "0.15.0";
15 format = "pyproject";
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchFromGitHub {
20 owner = "iterative";
21 repo = pname;
22 rev = "refs/tags/${version}";
23 hash = "sha256-azv9B5TiDlKzPD1+8tUOyMo8LDVgcSwiikwLrM/9ZEg=";
24 };
25
26 SETUPTOOLS_SCM_PRETEND_VERSION = version;
27
28 nativeBuildInputs = [
29 setuptools-scm
30 ];
31
32 propagatedBuildInputs = [
33 dulwich
34 gitpython
35 requests
36 voluptuous
37 ];
38
39 pythonImportsCheck = [
40 "dvc_studio_client"
41 ];
42
43 # Tests try to access network
44 doCheck = false;
45
46 meta = with lib; {
47 description = "Library to post data from DVC/DVCLive to Iterative Studio";
48 homepage = "https://github.com/iterative/dvc-studio-client";
49 changelog = "https://github.com/iterative/dvc-studio-client/releases/tag/${version}";
50 license = licenses.asl20;
51 maintainers = with maintainers; [ melling ];
52 };
53}