at 23.11-beta 1.0 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pythonOlder 6, six 7, tldextract 8}: 9 10buildPythonPackage rec { 11 pname = "surt"; 12 version = "0.3.1"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "internetarchive"; 19 repo = "surt"; 20 # Has no git tag, https://github.com/internetarchive/surt/issues/26 21 rev = "6934c321b3e2f66af9c001d882475949f00570c5"; 22 hash = "sha256-pSMNpFfq2V0ANWNFPcb1DwPHccbfddo9P4xZ+ghwbz4="; 23 }; 24 25 propagatedBuildInputs = [ 26 six 27 tldextract 28 ]; 29 30 nativeCheckInputs = [ 31 pytestCheckHook 32 ]; 33 34 pythonImportsCheck = [ 35 "surt" 36 ]; 37 38 disabledTests = [ 39 # Tests want to download Public Suffix List 40 "test_getPublicPrefix" 41 "test_getPublicSuffix" 42 ]; 43 44 meta = with lib; { 45 description = "Sort-friendly URI Reordering Transform (SURT) python module"; 46 homepage = "https://github.com/internetarchive/surt"; 47 license = licenses.agpl3Only; 48 maintainers = with maintainers; [ Luflosi ]; 49 }; 50}