9842c4b107
Idea shamelessly stolen from 4e60b0efae
.
I realized that I don't really know anymore where I'm listed as maintainer and what
I'm actually (co)-maintaining which means that I can't proactively take
care of packages I officially maintain.
As I don't have the time, energy and motivation to take care of stuff I
was interested in 1 or 2 years ago (or packaged for someone else in the
past), I decided that I make this explicit by removing myself from several
packages and adding myself in some other stuff I'm now interested in.
I've seen it several times now that people remove themselves from a
package without removing the package if it's unmaintained after that
which is why I figured that it's fine in my case as the affected pkgs
are rather low-prio and were pretty easy to maintain.
43 lines
993 B
Nix
43 lines
993 B
Nix
{ stdenv, buildPythonPackage, isPy3k, fetchFromGitHub, substituteAll
|
|
, python, utillinux, pygit2, gitMinimal, git-annex
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "git-annex-adapter";
|
|
version = "0.2.1";
|
|
|
|
disabled = !isPy3k;
|
|
|
|
# No tests in PyPI tarball
|
|
src = fetchFromGitHub {
|
|
owner = "alpernebbi";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "146q1jhcfc7f96ajkhjffskkljk2xzivs5ih5clb8qx0sh7mj097";
|
|
};
|
|
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./git-annex-path.patch;
|
|
gitAnnex = "${git-annex}/bin/git-annex";
|
|
})
|
|
];
|
|
|
|
checkInputs = [
|
|
gitMinimal
|
|
utillinux # `rev` is needed in tests/test_process.py
|
|
];
|
|
|
|
propagatedBuildInputs = [ pygit2 ];
|
|
|
|
checkPhase = ''
|
|
${python.interpreter} -m unittest
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://github.com/alpernebbi/git-annex-adapter;
|
|
description = "Call git-annex commands from Python";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|