depot/third_party/nixpkgs/pkgs/development/python-modules/scmrepo/default.nix
Default email 889482aab3 Project import generated by Copybara.
GitOrigin-RevId: f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5
2022-06-26 12:26:21 +02:00

58 lines
1,006 B
Nix

{ lib
, asyncssh
, buildPythonPackage
, dulwich
, fetchFromGitHub
, fsspec
, funcy
, GitPython
, pathspec
, pygit2
, pygtrie
, pythonOlder
}:
buildPythonPackage rec {
pname = "scmrepo";
version = "0.0.25";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "iterative";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-269vJNclTBWEqM9AJbF96R1I6Ru3q8YBd5A8Rmw7Jjo=";
};
propagatedBuildInputs = [
asyncssh
dulwich
fsspec
funcy
GitPython
pathspec
pygit2
pygtrie
];
postPatch = ''
substituteInPlace setup.cfg \
--replace "asyncssh>=2.7.1,<2.9" "asyncssh>=2.7.1"
'';
# 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 ];
};
}