Merge pull request #330771 from pyrox0/denose/http-ece

python312Packages.http-ece: 1.2.0 -> 1.2.1; modernize
This commit is contained in:
Peder Bergebakken Sundt 2024-08-02 15:01:11 +02:00 committed by GitHub
commit bc7a26d34f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,41 +2,39 @@
lib,
buildPythonPackage,
cryptography,
fetchPypi,
mock,
nose,
pythonOlder,
fetchFromGitHub,
setuptools,
pytestCheckHook,
pytest-cov-stub,
}:
buildPythonPackage rec {
pname = "http-ece";
version = "1.2.0";
version = "1.2.1";
pyproject = true;
src = fetchPypi {
pname = "http_ece";
inherit version;
hash = "sha256-tZIPjvuOG1+wJXE+Ozb9pUM2JiAQY0sm3B+Y+F0es94=";
src = fetchFromGitHub {
owner = "web-push-libs";
repo = "encrypted-content-encoding";
rev = version;
hash = "sha256-HjXJWoOvCVOdEto4Ss4HPUuf+uNcQkfvj/cxJGHOhQ8=";
};
postPatch = ''
substituteInPlace setup.py \
--replace-fail '"nose",' "" \
--replace-fail '"coverage",' ""
'';
sourceRoot = "${src.name}/python";
propagatedBuildInputs = [ cryptography ];
build-system = [ setuptools ];
doCheck = pythonOlder "3.12";
dependencies = [ cryptography ];
nativeCheckInputs = [
mock
nose
pytestCheckHook
pytest-cov-stub
];
meta = with lib; {
meta = {
description = "Encipher HTTP Messages";
homepage = "https://github.com/martinthomson/encrypted-content-encoding";
license = licenses.mit;
maintainers = with maintainers; [ peterhoeg ];
homepage = "https://github.com/web-push-libs/encrypted-content-encoding";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ peterhoeg ];
};
}