Files
nixpkgs/pkgs/development/python-modules/nextdns/default.nix
T

52 lines
986 B
Nix

{
lib,
aiohttp,
aioresponses,
buildPythonPackage,
fetchFromGitHub,
pytest-asyncio,
pytest-error-for-skips,
pytestCheckHook,
setuptools,
syrupy,
tenacity,
}:
buildPythonPackage (finalAttrs: {
pname = "nextdns";
version = "5.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "bieniu";
repo = "nextdns";
tag = finalAttrs.version;
hash = "sha256-jZ+ULAlqaOnVWEHDPzIxIFjx+4eC3jMlXyX0QhfZUYM=";
};
build-system = [ setuptools ];
dependencies = [
aiohttp
tenacity
];
nativeCheckInputs = [
aioresponses
pytest-asyncio
pytest-error-for-skips
pytestCheckHook
syrupy
];
pythonImportsCheck = [ "nextdns" ];
meta = {
description = "Module for the NextDNS API";
homepage = "https://github.com/bieniu/nextdns";
changelog = "https://github.com/bieniu/nextdns/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
})