depot/third_party/nixpkgs/pkgs/development/python-modules/scmrepo/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

66 lines
1.1 KiB
Nix

{
lib,
asyncssh,
buildPythonPackage,
dulwich,
dvc-http,
dvc-objects,
fetchFromGitHub,
fsspec,
funcy,
gitpython,
pathspec,
pygit2,
pygtrie,
pythonOlder,
setuptools,
setuptools-scm,
shortuuid,
}:
buildPythonPackage rec {
pname = "scmrepo";
version = "3.3.8";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "iterative";
repo = "scmrepo";
rev = "refs/tags/${version}";
hash = "sha256-8fx4yZcdOb32x5eo04ixpMe3Mh21LwqzNKVRVEnjfQo=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
asyncssh
dulwich
dvc-http
dvc-objects
fsspec
funcy
gitpython
pathspec
pygit2
pygtrie
shortuuid
];
# Requires a running Docker instance
doCheck = false;
pythonImportsCheck = [ "scmrepo" ];
meta = with lib; {
description = "SCM wrapper and fsspec filesystem";
homepage = "https://github.com/iterative/scmrepo";
changelog = "https://github.com/iterative/scmrepo/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}