2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
asyncssh,
|
|
|
|
buildPythonPackage,
|
|
|
|
dulwich,
|
|
|
|
dvc-http,
|
|
|
|
dvc-objects,
|
|
|
|
fetchFromGitHub,
|
|
|
|
fsspec,
|
|
|
|
funcy,
|
|
|
|
gitpython,
|
|
|
|
pathspec,
|
|
|
|
pygit2,
|
|
|
|
pygtrie,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
|
|
|
shortuuid,
|
2022-01-19 23:45:15 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "scmrepo";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "3.3.7";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2022-01-19 23:45:15 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "iterative";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "scmrepo";
|
2022-04-15 01:41:22 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-Z9HUeZPsskEPTwRRwK4z4p2Lv7Ukg7du6OAxvDwEcPc=";
|
2022-01-19 23:45:15 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [
|
2022-09-30 11:47:45 +00:00
|
|
|
setuptools
|
2023-05-24 13:37:59 +00:00
|
|
|
setuptools-scm
|
2022-09-30 11:47:45 +00:00
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2022-01-19 23:45:15 +00:00
|
|
|
asyncssh
|
|
|
|
dulwich
|
2024-01-13 08:15:51 +00:00
|
|
|
dvc-http
|
|
|
|
dvc-objects
|
2022-01-19 23:45:15 +00:00
|
|
|
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;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "scmrepo" ];
|
2022-01-19 23:45:15 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|