diff --git a/pkgs/development/python-modules/http-ece/default.nix b/pkgs/development/python-modules/http-ece/default.nix index 66dd40712ded0..d4010abc52426 100644 --- a/pkgs/development/python-modules/http-ece/default.nix +++ b/pkgs/development/python-modules/http-ece/default.nix @@ -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 ]; }; }