3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/pathy/default.nix

45 lines
1,005 B
Nix
Raw Normal View History

2021-05-07 22:01:44 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, typer
, dataclasses
, smart-open
2021-05-07 22:01:44 +01:00
, pytest
, mock
, google-cloud-storage
}:
buildPythonPackage rec {
pname = "pathy";
version = "0.5.2";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-nb8my/5rkc7thuHnXZHe1Hg8j+sLBlYyJcLHWrrKZ5M=";
};
propagatedBuildInputs = [ smart-open typer google-cloud-storage ];
2021-05-07 22:01:44 +01:00
postPatch = ''
substituteInPlace requirements.txt \
--replace "smart-open>=2.2.0,<4.0.0" "smart-open>=2.2.0"
2021-05-07 22:01:44 +01:00
'';
checkInputs = [ pytestCheckHook mock ];
# Exclude tests that require provider credentials
pytestFlagsArray = [
"--ignore=pathy/_tests/test_clients.py"
"--ignore=pathy/_tests/test_gcs.py"
"--ignore=pathy/_tests/test_s3.py"
];
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 ];
};
}