4cb23072fc
GitOrigin-RevId: 6d8215281b2f87a5af9ed7425a26ac575da0438f
53 lines
875 B
Nix
53 lines
875 B
Nix
{ lib
|
|
, asyncssh
|
|
, buildPythonPackage
|
|
, dulwich
|
|
, fetchFromGitHub
|
|
, fsspec
|
|
, funcy
|
|
, GitPython
|
|
, pathspec
|
|
, pygit2
|
|
, pygtrie
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "scmrepo";
|
|
version = "0.0.7";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "iterative";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-tZsogqcfAqpSo9yOz4z0mgY9SVU1epPmcBuyLJsHLfY=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
asyncssh
|
|
dulwich
|
|
fsspec
|
|
funcy
|
|
GitPython
|
|
pathspec
|
|
pygit2
|
|
pygtrie
|
|
];
|
|
|
|
# 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 ];
|
|
};
|
|
}
|