python3Packages.pathy: init at 0.5.2
This commit is contained in:
parent
975b3fc573
commit
ff95da3ab5
2 changed files with 45 additions and 0 deletions
43
pkgs/development/python-modules/pathy/default.nix
Normal file
43
pkgs/development/python-modules/pathy/default.nix
Normal file
|
@ -0,0 +1,43 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytestCheckHook
|
||||
, typer
|
||||
, dataclasses
|
||||
, smart_open
|
||||
, 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 ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace requirements.txt --replace "smart-open>=2.2.0,<4.0.0" "smart-open>=2.2.0"
|
||||
'';
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
|
@ -4825,6 +4825,8 @@ in {
|
|||
|
||||
pathvalidate = callPackage ../development/python-modules/pathvalidate { };
|
||||
|
||||
pathy = callPackage ../development/python-modules/pathy/default.nix { };
|
||||
|
||||
patiencediff = callPackage ../development/python-modules/patiencediff { };
|
||||
|
||||
patool = callPackage ../development/python-modules/patool { };
|
||||
|
|
Loading…
Reference in a new issue