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