infrastructure/machines/nixos/compute01/satosa/package/cookies-samesite-compat.nix

36 lines
815 B
Nix
Raw Normal View History

# SPDX-FileCopyrightText: 2024 Tom Hubrecht <tom.hubrecht@dgnum.eu>
#
# SPDX-License-Identifier: EUPL-1.2
{
lib,
python3,
fetchPypi,
2023-09-26 20:56:55 +02:00
}:
python3.pkgs.buildPythonPackage rec {
pname = "cookies-samesite-compat";
version = "0.0.1";
pyproject = true;
src = fetchPypi {
pname = "cookies_samesite_compat";
inherit version;
hash = "sha256-eC0rthOt3ahUUp+FD09guDag8MRQSRZ0lUkPxK8HOsA=";
};
nativeBuildInputs = with python3.pkgs; [
setuptools
wheel
];
pythonImportsCheck = [ "cookies_samesite_compat" ];
meta = with lib; {
description = "WSGI Middleware to duplicate the configured cookies and remove the SameSite attribute";
homepage = "https://pypi.org/project/cookies-samesite-compat";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}