2021-09-26 12:46:18 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchPypi
|
2022-11-21 17:40:18 +00:00
|
|
|
, setuptools
|
2021-09-26 12:46:18 +00:00
|
|
|
, h2
|
|
|
|
, lib
|
|
|
|
, pyjwt
|
|
|
|
, pyopenssl
|
2022-11-21 17:40:18 +00:00
|
|
|
, pythonOlder
|
2021-09-26 12:46:18 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aioapns";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "3.0";
|
2022-11-21 17:40:18 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2021-09-26 12:46:18 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-MiFjd9HYaTugjP66O24Tgk92bC91GQHggvy1sdQIu+0=";
|
2021-09-26 12:46:18 +00:00
|
|
|
};
|
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2021-09-26 12:46:18 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
h2
|
|
|
|
pyopenssl
|
|
|
|
pyjwt
|
|
|
|
];
|
|
|
|
|
|
|
|
# Project has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "aioapns" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An efficient APNs Client Library for Python/asyncio";
|
|
|
|
homepage = "https://github.com/Fatal1ty/aioapns";
|
|
|
|
license = licenses.asl20;
|
2021-12-06 16:07:01 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2021-09-26 12:46:18 +00:00
|
|
|
};
|
|
|
|
}
|