depot/third_party/nixpkgs/pkgs/development/python-modules/scmrepo/default.nix
Default email c594a97518 Project import generated by Copybara.
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
2022-10-21 20:38:19 +02:00

64 lines
1.1 KiB
Nix

{ lib
, asyncssh
, buildPythonPackage
, dulwich
, fetchFromGitHub
, fsspec
, funcy
, GitPython
, pathspec
, pygit2
, pygtrie
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "scmrepo";
version = "0.1.2";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "iterative";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-Mm/wwPB1iguCaS3cMp6R2r9+g6Nrs5NPU4BuQgBiMRI=";
};
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
];
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 ];
};
}