From dcfbb20d257794217d67990da32f22d77823f34c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 6 Apr 2022 11:16:56 +0200 Subject: [PATCH] python3Packages.hg-git: disable on older Python releases - Add pythonImportsCheck --- .../python-modules/hg-git/default.nix | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/hg-git/default.nix b/pkgs/development/python-modules/hg-git/default.nix index 599f840f22e1..6ccde29313b7 100644 --- a/pkgs/development/python-modules/hg-git/default.nix +++ b/pkgs/development/python-modules/hg-git/default.nix @@ -3,24 +3,34 @@ , fetchPypi , dulwich , mercurial +, pythonOlder }: buildPythonPackage rec { pname = "hg-git"; version = "1.0.0"; + format = "setuptools"; + + disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - sha256 = "sha256-ORGDOWLrnImca+qPtJZmyC8hGxJNCEC+tq2V4jpGIbY="; + hash = "sha256-ORGDOWLrnImca+qPtJZmyC8hGxJNCEC+tq2V4jpGIbY="; }; - propagatedBuildInputs = [ dulwich mercurial ]; + propagatedBuildInputs = [ + dulwich + mercurial + ]; + + pythonImportsCheck = [ + "hggit" + ]; meta = with lib; { description = "Push and pull from a Git server using Mercurial"; homepage = "https://hg-git.github.io/"; - maintainers = with maintainers; [ koral ]; license = licenses.gpl2Only; + maintainers = with maintainers; [ koral ]; }; - }