nixpkgs-suyu/pkgs/development/python-modules/pywebpush/default.nix
Martin Weinelt 45e6b6019e python3Packages.pywebpush: fix build
Updates dependencies and migrates test from nosetests to pytest.
2021-04-03 17:56:15 +02:00

45 lines
756 B
Nix

{ lib
, fetchPypi
, buildPythonPackage
, cryptography
, http-ece
, py-vapid
, requests
, six
, coverage
, flake8
, mock
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pywebpush";
version = "1.13.0";
src = fetchPypi {
inherit pname version;
sha256 = "97ef000a685cd1f63d9d3553568508508904bfe419485df2b83b025d94e9ae54";
};
propagatedBuildInputs = [
cryptography
http-ece
py-vapid
requests
six
];
checkInputs = [
coverage
flake8
mock
pytestCheckHook
];
meta = with lib; {
description = "Webpush Data encryption library for Python";
homepage = "https://github.com/web-push-libs/pywebpush";
license = licenses.mpl20;
maintainers = with maintainers; [ peterhoeg ];
};
}