1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, flatten-dict
5, fsspec
6, funcy
7, pygtrie
8, pytest-mock
9, pytestCheckHook
10, pythonOlder
11, setuptools-scm
12, shortuuid
13, tqdm
14, typing-extensions
15}:
16
17buildPythonPackage rec {
18 pname = "dvc-objects";
19 version = "1.2.0";
20 format = "pyproject";
21
22 disabled = pythonOlder "3.8";
23
24 src = fetchFromGitHub {
25 owner = "iterative";
26 repo = pname;
27 rev = "refs/tags/${version}";
28 hash = "sha256-kTp0CowXtnLXetcnoCeqlXoadgaQhL5mTYTfq9QLIl8=";
29 };
30
31 SETUPTOOLS_SCM_PRETEND_VERSION = version;
32
33 nativeBuildInputs = [
34 setuptools-scm
35 ];
36
37 propagatedBuildInputs = [
38 flatten-dict
39 fsspec
40 funcy
41 pygtrie
42 shortuuid
43 tqdm
44 typing-extensions
45 ];
46
47 nativeCheckInputs = [
48 pytest-mock
49 pytestCheckHook
50 ];
51
52 pythonImportsCheck = [
53 "dvc_objects"
54 ];
55
56 meta = with lib; {
57 description = "Library for DVC objects";
58 homepage = "https://github.com/iterative/dvc-objects";
59 changelog = "https://github.com/iterative/dvc-objects/releases/tag/${version}";
60 license = licenses.asl20;
61 maintainers = with maintainers; [ fab ];
62 };
63}