about summary refs log tree commit diff
path: root/pkgs/development/python-modules/blobfile/default.nix
blob: 039468acca4a8a9669ca63fe6fad78556f1548f6 (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
{ lib
, buildPythonPackage
, fetchFromGitHub
, filelock
, lxml
, pycryptodomex
, pythonOlder
, urllib3
}:

buildPythonPackage rec {
  pname = "blobfile";
  version = "2.1.0";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "christopher-hesse";
    repo = pname;
    rev = "refs/tags/v${version}";
    hash = "sha256-VBh1JMP+8FEqD0uXpxA5RRMFH9XIUb4FUgsPq3vZWHM=";
  };

  propagatedBuildInputs = [
    pycryptodomex
    filelock
    urllib3
    lxml
  ];

  # Tests require a running Docker instance
  doCheck = false;

  pythonImportsCheck = [
    "blobfile"
  ];

  meta = with lib; {
    description = "Read Google Cloud Storage, Azure Blobs, and local paths with the same interface";
    homepage = "https://github.com/christopher-hesse/blobfile";
    changelog = "https://github.com/christopher-hesse/blobfile/blob/v${version}/CHANGES.md";
    license = licenses.unlicense;
    maintainers = with maintainers; [ happysalada ];
  };
}