2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2023-08-04 22:07:22 +00:00
|
|
|
, fetchPypi
|
|
|
|
, setuptools
|
|
|
|
, setuptools-scm
|
2023-07-15 17:15:38 +00:00
|
|
|
, fsspec
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "universal-pathlib";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "0.1.0";
|
2023-07-15 17:15:38 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
pname = "universal_pathlib";
|
|
|
|
inherit version;
|
|
|
|
hash = "sha256-LqzljIZUZh8zHvcyBqFHBbunpJVYFpk6mfuesVGyojg=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2023-08-04 22:07:22 +00:00
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
2023-07-15 17:15:38 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
fsspec
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "upath" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Pathlib api extended to use fsspec backends";
|
|
|
|
homepage = "https://github.com/fsspec/universal_pathlib";
|
2023-08-04 22:07:22 +00:00
|
|
|
changelog = "https://github.com/fsspec/universal_pathlib/releases/tag/v${version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
};
|
|
|
|
}
|