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-10 07:59:29 +00:00
|
|
|
version = "0.1.1";
|
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;
|
2023-08-10 07:59:29 +00:00
|
|
|
hash = "sha256-UhTIbyEP6rm+W8wALwQtZeruw8CTP9ZlpDNstw6GxZ0=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|