Merge pull request #156626 from fabaff/fix-gitless

gitless: relax pygit2 constraint and limit to Python 3
This commit is contained in:
Fabian Affolter 2022-01-25 23:35:41 +01:00 committed by GitHub
commit ec0fe9ca7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 11 deletions

View File

@ -1,27 +1,42 @@
{ fetchFromGitHub, python, lib }:
{ lib
, fetchFromGitHub
, python3
}:
with python.pkgs;
buildPythonApplication rec {
python3.pkgs.buildPythonApplication rec {
pname = "gitless";
version = "0.8.8";
format = "setuptools";
src = fetchFromGitHub {
owner = "gitless-vcs";
repo = "gitless";
repo = pname;
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;
pythonImportsCheck = [
"gitless"
];
meta = with lib; {
description = "Version control system built on top of Git";
homepage = "https://gitless.com/";
description = "A version control system built on top of Git";
license = licenses.gpl2;
license = licenses.mit;
maintainers = with maintainers; [ cransom ];
platforms = platforms.all;
maintainers = [ maintainers.cransom ];
};
}

View File

@ -1791,7 +1791,7 @@ with pkgs;
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;