about summary refs log tree commit diff
path: root/pkgs/development/python-modules/dvc-http/default.nix
blob: ddd707736ae423b861c15bffeed9aaeb537ce5ac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
  lib,
  aiohttp-retry,
  buildPythonPackage,
  fetchFromGitHub,
  dvc-objects,
  fsspec,
  funcy,
  pythonOlder,
  setuptools-scm,
}:

buildPythonPackage rec {
  pname = "dvc-http";
  version = "2.32.0";
  pyproject = true;

  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "iterative";
    repo = "dvc-http";
    rev = "refs/tags/${version}";
    hash = "sha256-ru/hOFv/RcS/7SBpTJU8xFxdllmaiH4dV1ouS6GGKkY=";
  };

  build-system = [ setuptools-scm ];

  dependencies = [
    aiohttp-retry
    dvc-objects
    fsspec
    funcy
  ];

  # Currently it's not possible to run the tests
  # ModuleNotFoundError: No module named 'dvc.testing'
  doCheck = false;

  pythonImportsCheck = [ "dvc_http" ];

  meta = with lib; {
    description = "HTTP plugin for dvc";
    homepage = "https://github.com/iterative/dvc-http";
    changelog = "https://github.com/iterative/dvc-http/releases/tag/${version}";
    license = licenses.asl20;
    maintainers = with maintainers; [ fab ];
  };
}