2023-04-29 16:46:19 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, filelock
|
|
|
|
, lxml
|
|
|
|
, pycryptodomex
|
|
|
|
, pythonOlder
|
|
|
|
, urllib3
|
|
|
|
}:
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "blobfile";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "2.0.2";
|
|
|
|
format = "setuptools";
|
2023-04-12 12:48:02 +00:00
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "christopher-hesse";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-vVoiNIN/LNdbedaOQ+gtj4jhzmrGri49fftHKG+K/fg=";
|
2023-04-12 12:48:02 +00:00
|
|
|
};
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pycryptodomex
|
|
|
|
filelock
|
|
|
|
urllib3
|
|
|
|
lxml
|
|
|
|
];
|
2023-04-12 12:48:02 +00:00
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
# Tests require a running Docker instance
|
2023-04-12 12:48:02 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"blobfile"
|
|
|
|
];
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
meta = with lib; {
|
2023-04-29 16:46:19 +00:00
|
|
|
description = "Read Google Cloud Storage, Azure Blobs, and local paths with the same interface";
|
2023-04-12 12:48:02 +00:00
|
|
|
homepage = "https://github.com/christopher-hesse/blobfile";
|
2023-04-29 16:46:19 +00:00
|
|
|
changelog = "https://github.com/christopher-hesse/blobfile/blob/v${version}/CHANGES.md";
|
2023-07-15 17:15:38 +00:00
|
|
|
license = licenses.unlicense;
|
2023-04-12 12:48:02 +00:00
|
|
|
maintainers = with maintainers; [ happysalada ];
|
|
|
|
};
|
|
|
|
}
|