1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, isPy27 5}: 6 7buildPythonPackage rec { 8 pname = "hstspreload"; 9 version = "2021.11.1"; 10 disabled = isPy27; 11 12 src = fetchFromGitHub { 13 owner = "sethmlarson"; 14 repo = pname; 15 rev = version; 16 sha256 = "sha256-NpbmW4sWQmIqSllMSC+8uuSzVjUUZL+m5hshv4illCU="; 17 }; 18 19 # tests require network connection 20 doCheck = false; 21 22 pythonImportsCheck = [ "hstspreload" ]; 23 24 meta = with lib; { 25 description = "Chromium HSTS Preload list as a Python package and updated daily"; 26 homepage = "https://github.com/sethmlarson/hstspreload"; 27 license = licenses.bsd3; 28 maintainers = with maintainers; [ costrouc SuperSandro2000 ]; 29 }; 30}