Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, flit-core 5, fsspec 6}: 7 8buildPythonPackage rec { 9 pname = "universal-pathlib"; 10 version = "0.0.23"; 11 format = "pyproject"; 12 13 src = fetchFromGitHub { 14 owner = "fsspec"; 15 repo = "universal_pathlib"; 16 rev = "v${version}"; 17 hash = "sha256-UT4S7sqRn0/YFzFL1KzByK44u8G7pwWHERzJEm7xmiw="; 18 }; 19 20 nativeBuildInputs = [ 21 flit-core 22 ]; 23 24 propagatedBuildInputs = [ 25 fsspec 26 ]; 27 28 pythonImportsCheck = [ "upath" ]; 29 30 meta = with lib; { 31 description = "Pathlib api extended to use fsspec backends"; 32 homepage = "https://github.com/fsspec/universal_pathlib"; 33 changelog = "https://github.com/fsspec/universal_pathlib/releases/tag/${src.rev}"; 34 license = licenses.mit; 35 maintainers = with maintainers; [ figsoda ]; 36 }; 37}