Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
61 lines
1.6 KiB
Nix
61 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
python3Packages,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "gitfs";
|
|
version = "0.5.2";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "PressLabs";
|
|
repo = "gitfs";
|
|
rev = version;
|
|
sha256 = "1jzwdwan8ndvp2lw6j7zbvg5k9rgf2d8dcxjrwc6bwyk59xdxn4p";
|
|
};
|
|
|
|
patchPhase = ''
|
|
# requirement checks are unnecessary at runtime
|
|
echo > requirements.txt
|
|
|
|
# NOTE: As of gitfs 0.5.2, The pygit2 release that upstream uses is a major
|
|
# version behind the one packaged in nixpkgs.
|
|
substituteInPlace gitfs/mounter.py --replace \
|
|
'from pygit2.remote import RemoteCallbacks' \
|
|
'from pygit2 import RemoteCallbacks'
|
|
'';
|
|
|
|
nativeCheckInputs = with python3Packages; [
|
|
pytestCheckHook
|
|
pytest-cov-stub
|
|
mock
|
|
];
|
|
propagatedBuildInputs = with python3Packages; [
|
|
atomiclong
|
|
fusepy
|
|
pygit2
|
|
six
|
|
];
|
|
|
|
pythonImportsCheck = [ "gitfs" ];
|
|
|
|
meta = {
|
|
description = "FUSE filesystem that fully integrates with git";
|
|
longDescription = ''
|
|
A git remote repository's branch can be mounted locally,
|
|
and any subsequent changes made to the files will be
|
|
automatically committed to the remote.
|
|
'';
|
|
homepage = "https://github.com/PressLabs/gitfs";
|
|
license = lib.licenses.asl20;
|
|
platforms = lib.platforms.unix;
|
|
maintainers = [ lib.maintainers.robbinch ];
|
|
mainProgram = "gitfs";
|
|
# requires <=python39, otherwise you get this at runtime:
|
|
# AttributeError: module 'collections' has no attribute 'MutableMapping'
|
|
broken = true;
|
|
};
|
|
}
|