git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #42345 from Ma27/fix-python-git-annex-adapter

python3Packages.git-annex-adapter: fix build

commit43520486c78e8d874a33f135c36a1b2a75b47480 authorFrederik Rietdijk <freddyrietdijk@fridh.nl> dateSat 23 Jun 2018, 18:04 (8 years ago) parent509eb6147558d9
2 files changed+24−7
pkgs/development/python-modules/git-annex-adapter/default.nix+11−7 pkgs/development/python-modules/git-annex-adapter/not-a-git-repo-testcase.patch+13
pkgs/development/python-modules/git-annex-adapter/default.nix+11−7
@@ -1,5 +1,6 @@
1−{ stdenv, buildPythonPackage, isPy3k, fetchFromGitHub, fetchurl
2−, utillinux, pygit2, gitMinimal, git-annex }:
1+{ stdenv, buildPythonPackage, isPy3k, fetchFromGitHub, fetchpatch
2+, utillinux, pygit2, gitMinimal, git-annex
3+}:
34
45buildPythonPackage rec {
56 pname = "git-annex-adapter";
@@ -22,10 +23,13 @@ buildPythonPackage rec {
2223 '';
2324
2425 # TODO: Remove for next version
25− patches = fetchurl {
26− url = "https://github.com/alpernebbi/git-annex-adapter/commit/9f64c4b99cae7b681820c6c7382e1e40489f4d1e.patch";
27− sha256 = "1hbw8651amjskakvs1wv2msd1wryrq0vpryvbispg5267rs8q7hp";
28− };
26+ patches = [
27+ ./not-a-git-repo-testcase.patch
28+ (fetchpatch {
29+ url = "https://github.com/alpernebbi/git-annex-adapter/commit/9f64c4b99cae7b681820c6c7382e1e40489f4d1e.patch";
30+ sha256 = "0yh66gial6bx7kbl7s7lkzljnkpgvgr8yahqqcq9z76d0w752dir";
31+ })
32+ ];
2933
3034 checkInputs = [
3135 utillinux # `rev` is needed in tests/test_process.py
@@ -43,6 +47,6 @@ buildPythonPackage rec {
4347 homepage = https://github.com/alpernebbi/git-annex-adapter;
4448 description = "Call git-annex commands from Python";
4549 license = licenses.gpl3Plus;
46− maintainers = with maintainers; [ dotlambda ];
50+ maintainers = with maintainers; [ dotlambda ma27 ];
4751 };
4852}
pkgs/development/python-modules/git-annex-adapter/not-a-git-repo-testcase.patchnew file+13
@@ -0,0 +1,13 @@
1+diff --git a/tests/test_process.py b/tests/test_process.py
2+index 493fc8f..feb1833 100644
3+--- a/tests/test_process.py
4++++ b/tests/test_process.py
5+@@ -126,7 +126,7 @@ class TestProcessOnEmptyDir(TempDirTestCase):
6+ with self.assertRaises(subprocess.CalledProcessError) as cm:
7+ runner('status', '-sb')
8+ self.assertIn(
9+- "fatal: Not a git repository",
10++ "fatal: not a git repository",
11+ cm.exception.stderr,
12+ )
13+