python311Packages.surt: disable tests which requires network access
This commit is contained in:
parent
38d82e90c6
commit
aba7912b9e
@ -1,19 +1,24 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, six
|
||||
, tldextract
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "surt";
|
||||
version = "0.3.1";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "internetarchive";
|
||||
repo = "surt";
|
||||
rev = "6934c321b3e2f66af9c001d882475949f00570c5"; # Has no git tag
|
||||
# Has no git tag, https://github.com/internetarchive/surt/issues/26
|
||||
rev = "6934c321b3e2f66af9c001d882475949f00570c5";
|
||||
hash = "sha256-pSMNpFfq2V0ANWNFPcb1DwPHccbfddo9P4xZ+ghwbz4=";
|
||||
};
|
||||
|
||||
@ -26,7 +31,15 @@ buildPythonPackage rec {
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "surt" ];
|
||||
pythonImportsCheck = [
|
||||
"surt"
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# Tests want to download Public Suffix List
|
||||
"test_getPublicPrefix"
|
||||
"test_getPublicSuffix"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Sort-friendly URI Reordering Transform (SURT) python module";
|
||||
|
Loading…
Reference in New Issue
Block a user