mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
Release: https://github.com/django/asgiref/releases/tag/3.11.1
Diff: https://github.com/django/asgiref/compare/3.11.0...3.11.1
(cherry picked from commit e1696ec3f6)
46 lines
1 KiB
Nix
46 lines
1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
typing-extensions,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
version = "3.11.1";
|
|
pname = "asgiref";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "django";
|
|
repo = "asgiref";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-Mhnaowgv5a+O2hN0ZSdtdhCBQx8HoKSwtRC3gHodgKY=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ typing-extensions ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-asyncio
|
|
];
|
|
|
|
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ "test_multiprocessing" ];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
pythonImportsCheck = [ "asgiref" ];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/django/asgiref/blob/${finalAttrs.src.tag}/CHANGELOG.txt";
|
|
description = "Reference ASGI adapters and channel layers";
|
|
homepage = "https://github.com/django/asgiref";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ miniharinn ];
|
|
};
|
|
})
|