2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, isPy27
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hstspreload";
|
2021-05-28 09:39:13 +00:00
|
|
|
version = "2021.5.24";
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sethmlarson";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-05-28 09:39:13 +00:00
|
|
|
sha256 = "sha256-Z1v2p8kn0IO38Cgr4tUp2n3zAiQntkskS7kYPUakC5U=";
|
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
|
|
|
};
|
|
|
|
}
|