2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, isPy27
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hstspreload";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "2021.6.28";
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sethmlarson";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "sha256-SZGyn79R3+IwtoZ+khgFnl0WosRoCcKNk8efGxbOugc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# tests require network connection
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
pythonImportsCheck = [ "hstspreload" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Chromium HSTS Preload list as a Python package and updated daily";
|
|
|
|
homepage = "https://github.com/sethmlarson/hstspreload";
|
|
|
|
license = licenses.bsd3;
|
2021-02-17 17:02:09 +00:00
|
|
|
maintainers = with maintainers; [ costrouc SuperSandro2000 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|