depot/third_party/nixpkgs/pkgs/development/python-modules/asgiref/default.nix
Default email 87f9c27ba9 Project import generated by Copybara.
GitOrigin-RevId: fe2ecaf706a5907b5e54d979fbde4924d84b65fc
2023-04-12 14:48:02 +02:00

49 lines
1 KiB
Nix

{ lib
, stdenv
, buildPythonPackage
, fetchFromGitHub
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, typing-extensions
}:
buildPythonPackage rec {
version = "3.6.0";
pname = "asgiref";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "django";
repo = "asgiref";
rev = "refs/tags/${version}";
hash = "sha256-Kl4483rfuFKbnD7pBSTND1QAtBsZP6jKsrDlpVCZLDs=";
};
propagatedBuildInputs = [
typing-extensions
];
nativeCheckInputs = [
pytestCheckHook
pytest-asyncio
];
disabledTests = lib.optionals stdenv.isDarwin [
"test_multiprocessing"
];
__darwinAllowLocalNetworking = true;
pythonImportsCheck = [ "asgiref" ];
meta = with lib; {
changelog = "https://github.com/django/asgiref/blob/${src.rev}/CHANGELOG.txt";
description = "Reference ASGI adapters and channel layers";
homepage = "https://github.com/django/asgiref";
license = licenses.bsd3;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}