nixpkgs/pkgs/development/python-modules/blobfile/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
986 B
Nix
Raw Permalink Normal View History

{
lib,
buildPythonPackage,
fetchFromGitHub,
filelock,
lxml,
pycryptodomex,
pythonOlder,
urllib3,
}:
buildPythonPackage rec {
pname = "blobfile";
version = "3.0.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "christopher-hesse";
repo = "blobfile";
tag = "v${version}";
hash = "sha256-/v48rLvlN4lsfWKJvXRNuIO6jdsCgRcSPlJzdOfl3xk=";
};
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 ];
};
}