mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
41d1f44b9d
Diff: https://github.com/iterative/scmrepo/compare/refs/tags/1.2.1...1.3.1 Changelog: https://github.com/iterative/scmrepo/releases/tag/1.3.1
66 lines
1.1 KiB
Nix
66 lines
1.1 KiB
Nix
{ lib
|
|
, asyncssh
|
|
, buildPythonPackage
|
|
, dulwich
|
|
, fetchFromGitHub
|
|
, fsspec
|
|
, funcy
|
|
, gitpython
|
|
, pathspec
|
|
, pygit2
|
|
, pygtrie
|
|
, pythonOlder
|
|
, setuptools
|
|
, setuptools-scm
|
|
, shortuuid
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "scmrepo";
|
|
version = "1.3.1";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "iterative";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-/ZELaJrGgNKzAXi1SXAMgxi84R0UvZBD9AUVO7PTEbA=";
|
|
};
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
asyncssh
|
|
dulwich
|
|
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 ];
|
|
};
|
|
}
|