Merge pull request #285074 from fabaff/scmrepo-bump
python311Packages.pygit2: 1.13.3 -> 1.14.0
This commit is contained in:
@@ -1,20 +1,31 @@
|
||||
{ lib, buildPythonPackage, isPy3k, fetchFromGitHub, fetchpatch, substituteAll
|
||||
, python, util-linux, pygit2, gitMinimal, git-annex, cacert
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, cacert
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, git-annex
|
||||
, gitMinimal
|
||||
, pygit2
|
||||
, pytestCheckHook
|
||||
, python
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
, substituteAll
|
||||
, util-linux
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "git-annex-adapter";
|
||||
version = "0.2.2";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
disabled = !isPy3k;
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
# No tests in PyPI tarball
|
||||
src = fetchFromGitHub {
|
||||
owner = "alpernebbi";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0666vqspgnvmfs6j3kifwyxr6zmxjs0wlwis7br4zcq0gk32zgdx";
|
||||
repo = "git-annex-adapter";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-vb0vxnwAs0/yOjpyyoGWvX6Tu+cuziGNdnXbdzXexhg=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
@@ -37,17 +48,31 @@ buildPythonPackage rec {
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pygit2
|
||||
cacert
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
gitMinimal
|
||||
util-linux # `rev` is needed in tests/test_process.py
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ pygit2 cacert ];
|
||||
pythonImportsCheck = [
|
||||
"git_annex_adapter"
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} -m unittest
|
||||
'';
|
||||
pythonImportsCheck = [ "git_annex_adapter" ];
|
||||
disabledTests = [
|
||||
# KeyError and AssertionError
|
||||
"test_jsonprocess_annex_metadata_batch"
|
||||
"test_process_annex_metadata_batch"
|
||||
"test_batchjson_metadata"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/alpernebbi/git-annex-adapter";
|
||||
|
||||
@@ -10,24 +10,29 @@
|
||||
, pycparser
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pygit2";
|
||||
version = "1.13.3";
|
||||
format = "setuptools";
|
||||
version = "1.14.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-AlfGJgEeSvuZvbIIdUQ/cG+EIB1MkmN/AiFbmOrBPe0=";
|
||||
hash = "sha256-9SntlmDtv5tiXMrn5RCY73NmLmFJZgkAl3LUYnqCaqg=";
|
||||
};
|
||||
|
||||
preConfigure = lib.optionalString stdenv.isDarwin ''
|
||||
export DYLD_LIBRARY_PATH="${libgit2}/lib"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libgit2
|
||||
];
|
||||
@@ -65,6 +70,7 @@ buildPythonPackage rec {
|
||||
meta = with lib; {
|
||||
description = "A set of Python bindings to the libgit2 shared library";
|
||||
homepage = "https://github.com/libgit2/pygit2";
|
||||
changelog = "https://github.com/libgit2/pygit2/blob/v${version}/CHANGELOG.md";
|
||||
license = licenses.gpl2Only;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "scmrepo";
|
||||
version = "2.0.4";
|
||||
version = "2.1.1";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
@@ -28,7 +28,7 @@ buildPythonPackage rec {
|
||||
owner = "iterative";
|
||||
repo = pname;
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-gBGfL6Xet7ASdwRTFJ5nHpyeXi/pqlrL9o5nC3m48hk=";
|
||||
hash = "sha256-KG7Y+1qqsgDwgRYsb3XbZnF6FduHJCAEizfuugBi0Go=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
||||
Reference in New Issue
Block a user