1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-21 08:59:20 +03:00
nixpkgs/pkgs/development/python-modules/blobfile/default.nix
2024-05-22 17:32:03 +02:00

45 lines
991 B
Nix

{
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 ];
};
}