2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2023-10-09 19:29:22 +00:00
|
|
|
, pythonOlder
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.2.2";
|
2023-07-15 17:15:38 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
pname = "universal_pathlib";
|
|
|
|
inherit version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-a8IVVIeSrV2zVTcIscGbr9ni+hZn3JJe1ATJXlKuLxM=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|