Skip to content

Commit

Permalink
Merge pull request #330771 from pyrox0/denose/http-ece
Browse files Browse the repository at this point in the history
python312Packages.http-ece: 1.2.0 -> 1.2.1; modernize
  • Loading branch information
pbsds authored Aug 2, 2024
2 parents 5eb429a + 0c54982 commit bc7a26d
Showing 1 changed file with 20 additions and 22 deletions.
42 changes: 20 additions & 22 deletions pkgs/development/python-modules/http-ece/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 ];
};
}

0 comments on commit bc7a26d

Please sign in to comment.