2019-12-29 18:06:34 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, isPy27
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hstspreload";
|
2020-12-23 21:52:55 +00:00
|
|
|
version = "2020.12.22";
|
2019-12-29 18:06:34 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sethmlarson";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-12-23 21:52:55 +00:00
|
|
|
sha256 = "1jzcw4clmpbyw67pzskms5rq5b7285iwh42jzc4ly6jz9amggdzc";
|
2019-12-29 18:06:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# tests require network connection
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-12-21 00:29:55 +00:00
|
|
|
pythonImportsCheck = [ "hstspreload" ];
|
|
|
|
|
2019-12-29 18:06:34 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Chromium HSTS Preload list as a Python package and updated daily";
|
2020-03-03 00:20:01 +00:00
|
|
|
homepage = "https://github.com/sethmlarson/hstspreload";
|
2019-12-29 18:06:34 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|