mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-10 18:58:14 +00:00
56 lines
1.0 KiB
Nix
56 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
aiohttp,
|
|
aiointercept,
|
|
aioresponses,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytest-asyncio,
|
|
pytest-error-for-skips,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
syrupy,
|
|
tenacity,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "nextdns";
|
|
version = "5.0.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bieniu";
|
|
repo = "nextdns";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-QCiosQHxuwDxztXMEkEosob8M2NMtnlGI33m5oAkaBw=";
|
|
};
|
|
|
|
pythonRelaxDeps = [ "aiohttp" ];
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
aiohttp
|
|
tenacity
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
aiointercept
|
|
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 ];
|
|
};
|
|
})
|