diff options
Diffstat (limited to 'pkgs/applications/version-management/gitless/default.nix')
-rw-r--r-- | pkgs/applications/version-management/gitless/default.nix | 37 |
1 files changed, 26 insertions, 11 deletions
diff --git a/pkgs/applications/version-management/gitless/default.nix b/pkgs/applications/version-management/gitless/default.nix index 310158e3eeae6..a721834725889 100644 --- a/pkgs/applications/version-management/gitless/default.nix +++ b/pkgs/applications/version-management/gitless/default.nix @@ -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 = "sdg-mit"; - repo = "gitless"; + owner = "gitless-vcs"; + repo = pname; rev = "v${version}"; - sha256 = "1q6y38f8ap6q1livvfy0pfnjr0l8b68hyhc9r5v87fmdyl7y7y8g"; + 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 ]; }; } - |