567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
34 lines
651 B
Nix
34 lines
651 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "hstspreload";
|
|
version = "2025.12.3";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sethmlarson";
|
|
repo = "hstspreload";
|
|
tag = version;
|
|
hash = "sha256-K44Lzom7AQMsnJGN9RYNfZuD+wbbZtTGStjJtS/4NcE=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
# Tests require network connection
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "hstspreload" ];
|
|
|
|
meta = {
|
|
description = "Chromium HSTS Preload list";
|
|
homepage = "https://github.com/sethmlarson/hstspreload";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = [ ];
|
|
};
|
|
}
|