2019-12-29 19:06:34 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, isPy27
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hstspreload";
|
2021-07-07 16:30:03 +02:00
|
|
|
version = "2021.7.5";
|
2019-12-29 19:06:34 +01:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sethmlarson";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-07-07 16:30:03 +02:00
|
|
|
sha256 = "sha256-/89K41MrTdF68+BVkfnv+0d+6rBHdRGKpN2Psfr2Wog=";
|
2019-12-29 19:06:34 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# tests require network connection
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-12-21 01:29:55 +01:00
|
|
|
pythonImportsCheck = [ "hstspreload" ];
|
|
|
|
|
2019-12-29 19:06:34 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Chromium HSTS Preload list as a Python package and updated daily";
|
2020-03-03 01:20:01 +01:00
|
|
|
homepage = "https://github.com/sethmlarson/hstspreload";
|
2019-12-29 19:06:34 +01:00
|
|
|
license = licenses.bsd3;
|
2021-02-13 08:59:38 +01:00
|
|
|
maintainers = with maintainers; [ costrouc SuperSandro2000 ];
|
2019-12-29 19:06:34 +01:00
|
|
|
};
|
|
|
|
}
|