2021-09-24 01:34:43 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchPypi
|
2022-11-11 23:26:00 +00:00
|
|
|
, setuptools
|
2021-09-24 01:34:43 +00:00
|
|
|
, h2
|
|
|
|
, lib
|
|
|
|
, pyjwt
|
|
|
|
, pyopenssl
|
2022-11-11 23:26:00 +00:00
|
|
|
, pythonOlder
|
2021-09-24 01:34:43 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aioapns";
|
2022-11-11 23:25:21 +00:00
|
|
|
version = "2.2";
|
2022-11-11 23:26:00 +00:00
|
|
|
format = "pyproject";
|
2021-09-24 01:34:43 +00:00
|
|
|
|
2022-11-11 23:26:00 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
2021-09-24 01:34:43 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-03 00:48:06 +00:00
|
|
|
hash = "sha256-3FMNIhIZrstPKTfHVmN+K28UR2G26HZ5S/JtXmaFk1c=";
|
2021-09-24 01:34:43 +00:00
|
|
|
};
|
|
|
|
|
2022-11-11 23:26:00 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2021-09-24 01:34:43 +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-11-03 00:38:27 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2021-09-24 01:34:43 +00:00
|
|
|
};
|
|
|
|
}
|