nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, asyncssh
3, buildPythonPackage
4, dulwich
5, fetchFromGitHub
6, fsspec
7, funcy
8, GitPython
9, pathspec
10, pygit2
11, pygtrie
12, pythonOlder
13}:
14
15buildPythonPackage rec {
16 pname = "scmrepo";
17 version = "0.0.22";
18 format = "pyproject";
19
20 disabled = pythonOlder "3.7";
21
22 src = fetchFromGitHub {
23 owner = "iterative";
24 repo = pname;
25 rev = "refs/tags/${version}";
26 hash = "sha256-hV0BusvuJUEGfmue7OHR3YYmpBcFTgbQE7UuHmTUBo0=";
27 };
28
29 propagatedBuildInputs = [
30 asyncssh
31 dulwich
32 fsspec
33 funcy
34 GitPython
35 pathspec
36 pygit2
37 pygtrie
38 ];
39
40 postPatch = ''
41 substituteInPlace setup.cfg \
42 --replace "asyncssh>=2.7.1,<2.9" "asyncssh>=2.7.1"
43 '';
44
45 # Requires a running Docker instance
46 doCheck = false;
47
48 pythonImportsCheck = [
49 "scmrepo"
50 ];
51
52 meta = with lib; {
53 description = "SCM wrapper and fsspec filesystem";
54 homepage = "https://github.com/iterative/scmrepo";
55 license = licenses.asl20;
56 maintainers = with maintainers; [ fab ];
57 };
58}