nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 fsspec,
6 pytest-asyncio,
7 pytest-mock,
8 pytestCheckHook,
9 reflink,
10 setuptools-scm,
11 shortuuid,
12}:
13
14buildPythonPackage rec {
15 pname = "dvc-objects";
16 version = "5.2.0";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "iterative";
21 repo = "dvc-objects";
22 tag = version;
23 hash = "sha256-COrHD7RtmShdC7YWFc+S3xi/Xxt+Afrj3vaCLfE8t28=";
24 };
25
26 postPatch = ''
27 substituteInPlace pyproject.toml \
28 --replace " --benchmark-skip" ""
29 '';
30
31 build-system = [ setuptools-scm ];
32
33 dependencies = [ fsspec ];
34
35 nativeCheckInputs = [
36 pytest-asyncio
37 pytest-mock
38 pytestCheckHook
39 reflink
40 shortuuid
41 ];
42
43 pythonImportsCheck = [ "dvc_objects" ];
44
45 disabledTestPaths = [
46 # Disable benchmarking
47 "tests/benchmarks/"
48 ];
49
50 meta = {
51 description = "Library for DVC objects";
52 homepage = "https://github.com/iterative/dvc-objects";
53 changelog = "https://github.com/iterative/dvc-objects/releases/tag/${src.tag}";
54 license = lib.licenses.asl20;
55 maintainers = with lib.maintainers; [ fab ];
56 };
57}