2022-01-19 23:45:15 +00:00
|
|
|
{ lib
|
|
|
|
, asyncssh
|
|
|
|
, buildPythonPackage
|
|
|
|
, dulwich
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fsspec
|
|
|
|
, funcy
|
|
|
|
, GitPython
|
|
|
|
, pathspec
|
|
|
|
, pygit2
|
|
|
|
, pygtrie
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "scmrepo";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "0.0.24";
|
2022-01-19 23:45:15 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "iterative";
|
|
|
|
repo = pname;
|
2022-04-15 01:41:22 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2022-06-16 17:23:12 +00:00
|
|
|
hash = "sha256-S1jeLls0do9sCqTWe8h8+8CO3oM160J97UmISUhTU/s=";
|
2022-01-19 23:45:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
asyncssh
|
|
|
|
dulwich
|
|
|
|
fsspec
|
|
|
|
funcy
|
|
|
|
GitPython
|
|
|
|
pathspec
|
|
|
|
pygit2
|
|
|
|
pygtrie
|
|
|
|
];
|
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.cfg \
|
|
|
|
--replace "asyncssh>=2.7.1,<2.9" "asyncssh>=2.7.1"
|
|
|
|
'';
|
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
# Requires a running Docker instance
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"scmrepo"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "SCM wrapper and fsspec filesystem";
|
|
|
|
homepage = "https://github.com/iterative/scmrepo";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|