2022-01-19 23:45:15 +00:00
|
|
|
{ lib
|
|
|
|
, asyncssh
|
|
|
|
, buildPythonPackage
|
|
|
|
, dulwich
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fsspec
|
|
|
|
, funcy
|
2022-12-17 10:02:37 +00:00
|
|
|
, gitpython
|
2022-01-19 23:45:15 +00:00
|
|
|
, pathspec
|
|
|
|
, pygit2
|
|
|
|
, pygtrie
|
|
|
|
, pythonOlder
|
2022-09-30 11:47:45 +00:00
|
|
|
, setuptools
|
2023-02-16 17:41:37 +00:00
|
|
|
, shortuuid
|
2022-01-19 23:45:15 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "scmrepo";
|
2023-03-27 19:17:25 +00:00
|
|
|
version = "0.1.17";
|
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}";
|
2023-03-27 19:17:25 +00:00
|
|
|
hash = "sha256-hY46bowYJFmGfEmynTtGgXXkF9D5AcqApO7I/BIl/Lw=";
|
2022-01-19 23:45:15 +00:00
|
|
|
};
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.cfg \
|
|
|
|
--replace "asyncssh>=2.7.1,<2.9" "asyncssh>=2.7.1" \
|
|
|
|
--replace "pathspec>=0.9.0,<0.10.0" "pathspec"
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
asyncssh
|
|
|
|
dulwich
|
|
|
|
fsspec
|
|
|
|
funcy
|
2022-12-17 10:02:37 +00:00
|
|
|
gitpython
|
2022-01-19 23:45:15 +00:00
|
|
|
pathspec
|
|
|
|
pygit2
|
|
|
|
pygtrie
|
2023-02-16 17:41:37 +00:00
|
|
|
shortuuid
|
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";
|
2022-12-02 08:20:57 +00:00
|
|
|
changelog = "https://github.com/iterative/scmrepo/releases/tag/${version}";
|
2022-01-19 23:45:15 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|