gitless: relax pygit2 constraint and limit to Python 3
This commit is contained in:
parent
8fc6055ce7
commit
0383246382
|
@ -1,27 +1,42 @@
|
||||||
{ fetchFromGitHub, python, lib }:
|
{ lib
|
||||||
|
, fetchFromGitHub
|
||||||
|
, python3
|
||||||
|
}:
|
||||||
|
|
||||||
with python.pkgs;
|
python3.pkgs.buildPythonApplication rec {
|
||||||
buildPythonApplication rec {
|
|
||||||
pname = "gitless";
|
pname = "gitless";
|
||||||
version = "0.8.8";
|
version = "0.8.8";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "gitless-vcs";
|
owner = "gitless-vcs";
|
||||||
repo = "gitless";
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-xo5EWtP2aN8YzP8ro3bnxZwUGUp0PHD0g8hk+Y+gExE=";
|
hash = "sha256-xo5EWtP2aN8YzP8ro3bnxZwUGUp0PHD0g8hk+Y+gExE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = with pythonPackages; [ sh pygit2 clint ];
|
propagatedBuildInputs = with python3.pkgs; [
|
||||||
|
sh
|
||||||
|
pygit2
|
||||||
|
clint
|
||||||
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace setup.py \
|
||||||
|
--replace "pygit2==0.28.2" "pygit2>=0.28.2"
|
||||||
|
'';
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"gitless"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
description = "Version control system built on top of Git";
|
||||||
homepage = "https://gitless.com/";
|
homepage = "https://gitless.com/";
|
||||||
description = "A version control system built on top of Git";
|
license = licenses.mit;
|
||||||
license = licenses.gpl2;
|
maintainers = with maintainers; [ cransom ];
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
maintainers = [ maintainers.cransom ];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1781,7 +1781,7 @@ with pkgs;
|
||||||
|
|
||||||
github-to-sqlite = with python3Packages; toPythonApplication github-to-sqlite;
|
github-to-sqlite = with python3Packages; toPythonApplication github-to-sqlite;
|
||||||
|
|
||||||
gitless = callPackage ../applications/version-management/gitless { python = python3; };
|
gitless = callPackage ../applications/version-management/gitless { };
|
||||||
|
|
||||||
gistyc = with python3Packages; toPythonApplication gistyc;
|
gistyc = with python3Packages; toPythonApplication gistyc;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue