2022-01-19 23:45:15 +00:00
|
|
|
{ lib
|
|
|
|
, asyncssh
|
|
|
|
, buildPythonPackage
|
|
|
|
, dulwich
|
2024-01-13 08:15:51 +00:00
|
|
|
, dvc-http
|
|
|
|
, dvc-objects
|
2022-01-19 23:45:15 +00:00
|
|
|
, 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-05-24 13:37:59 +00:00
|
|
|
, setuptools-scm
|
2023-02-16 17:41:37 +00:00
|
|
|
, shortuuid
|
2022-01-19 23:45:15 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "scmrepo";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "3.3.1";
|
|
|
|
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-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-swv5uWsyM4mEXlurizUewnbdAOtjWgvzCO9IPfz2ZPE=";
|
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;
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|