2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
h2,
|
|
|
|
pyjwt,
|
|
|
|
pyopenssl,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
2021-09-26 12:46:18 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aioapns";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "3.2";
|
2023-11-16 04:20:00 +00:00
|
|
|
pyproject = true;
|
2022-11-21 17:40:18 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2021-09-26 12:46:18 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-QPayQogW97saMmaPUP5x0CiXd6Qptg/OROigi5ASNQg=";
|
2021-09-26 12:46:18 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2022-11-21 17:40:18 +00:00
|
|
|
|
2021-09-26 12:46:18 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
h2
|
|
|
|
pyopenssl
|
|
|
|
pyjwt
|
|
|
|
];
|
|
|
|
|
|
|
|
# Project has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "aioapns" ];
|
2021-09-26 12:46:18 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Efficient APNs Client Library";
|
2021-09-26 12:46:18 +00:00
|
|
|
homepage = "https://github.com/Fatal1ty/aioapns";
|
2023-11-16 04:20:00 +00:00
|
|
|
changelog = "https://github.com/Fatal1ty/aioapns/releases/tag/v${version}";
|
2021-09-26 12:46:18 +00:00
|
|
|
license = licenses.asl20;
|
2021-12-06 16:07:01 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2021-09-26 12:46:18 +00:00
|
|
|
};
|
|
|
|
}
|