e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
39 lines
785 B
Nix
39 lines
785 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "hstspreload";
|
|
version = "2024.1.5";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sethmlarson";
|
|
repo = "hstspreload";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-sf0Dsl6zH64O3Y8jns10jAE5faaJSRAu4M5JQ4JBKh0=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
# Tests require network connection
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"hstspreload"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Chromium HSTS Preload list as a Python package and updated daily";
|
|
homepage = "https://github.com/sethmlarson/hstspreload";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|