mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
54 lines
987 B
Nix
54 lines
987 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, fetchpatch
|
|
, google-cloud-storage
|
|
, mock
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, smart-open
|
|
, typer
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pathy";
|
|
version = "0.10.2";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-ecVyq3/thNxGg3NG7a5YVlmS0Ed6eJzUaRpB2Oq5kX0=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
google-cloud-storage
|
|
smart-open
|
|
typer
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# Exclude tests that require provider credentials
|
|
"pathy/_tests/test_clients.py"
|
|
"pathy/_tests/test_gcs.py"
|
|
"pathy/_tests/test_s3.py"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"pathy"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A Path interface for local and cloud bucket storage";
|
|
homepage = "https://github.com/justindujardin/pathy";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ melling ];
|
|
};
|
|
}
|