From d607e3143ff1314468c2f4afc9f46d7ea6ece7cf Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 4 Jun 2021 10:57:32 +0200 Subject: [PATCH] python3Packages.certifi: enable tests (cherry picked from commit 19f90b99e7451160d3a13a404d5a8194ef60a27a) --- .../python-modules/certifi/default.nix | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/certifi/default.nix b/pkgs/development/python-modules/certifi/default.nix index 7ca69acb88d..d0ae968b0be 100644 --- a/pkgs/development/python-modules/certifi/default.nix +++ b/pkgs/development/python-modules/certifi/default.nix @@ -1,20 +1,25 @@ { lib -, fetchPypi , buildPythonPackage +, fetchFromGitHub +, pytestCheckHook }: buildPythonPackage rec { pname = "certifi"; - version = "2021.5.30"; + version = "2021.05.30"; - src = fetchPypi { - inherit pname version; - sha256 = "sha256-K792/UMpYBOLPvbdo93gVE8ny/hUbEWOYLrzcZF7qe4="; + src = fetchFromGitHub { + owner = pname; + repo = "python-certifi"; + rev = version; + sha256 = "1i4ljsc47iac6kl1w4w6x0qia08s9z394z9lbyzc05pm7y8a3cmj"; }; - pythonImportsCheck = [ "certifi" ]; + checkInputs = [ + pytestCheckHook + ]; - dontUseSetuptoolsCheck = true; + pythonImportsCheck = [ "certifi" ]; meta = with lib; { homepage = "https://certifi.io/";