2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
filelock,
|
|
|
|
lxml,
|
|
|
|
pycryptodomex,
|
|
|
|
pythonOlder,
|
|
|
|
urllib3,
|
2023-04-29 16:46:19 +00:00
|
|
|
}:
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "blobfile";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2.1.0";
|
2023-04-29 16:46:19 +00:00
|
|
|
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}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-VBh1JMP+8FEqD0uXpxA5RRMFH9XIUb4FUgsPq3vZWHM=";
|
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;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "blobfile" ];
|
2023-04-29 16:46:19 +00:00
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|