1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 setuptools, 7}: 8 9buildPythonPackage rec { 10 pname = "hstspreload"; 11 version = "2024.5.1"; 12 pyproject = true; 13 14 disabled = pythonOlder "3.6"; 15 16 src = fetchFromGitHub { 17 owner = "sethmlarson"; 18 repo = "hstspreload"; 19 rev = "refs/tags/${version}"; 20 hash = "sha256-Ut2VhU2+o4wm4WY4zz/25EyDLvrYoBu3iVFkx3FZVYo="; 21 }; 22 23 build-system = [ setuptools ]; 24 25 # Tests require network connection 26 doCheck = false; 27 28 pythonImportsCheck = [ "hstspreload" ]; 29 30 meta = with lib; { 31 description = "Chromium HSTS Preload list as a Python package and updated daily"; 32 homepage = "https://github.com/sethmlarson/hstspreload"; 33 license = licenses.bsd3; 34 maintainers = with maintainers; [ ]; 35 }; 36}