mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
7079e744d4
Resolved the following conflicts (by carefully applying patches from the both branches since the fork point): pkgs/development/libraries/epoxy/default.nix pkgs/development/libraries/gtk+/3.x.nix pkgs/development/python-modules/asgiref/default.nix pkgs/development/python-modules/daphne/default.nix pkgs/os-specific/linux/systemd/default.nix
28 lines
670 B
Nix
28 lines
670 B
Nix
{ stdenv, buildPythonPackage, fetchFromGitHub, async-timeout, pytest, pytest-asyncio }:
|
|
buildPythonPackage rec {
|
|
version = "2.2.0";
|
|
pname = "asgiref";
|
|
|
|
# PyPI tarball doesn't include tests directory
|
|
src = fetchFromGitHub {
|
|
owner = "django";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0jsdkgwzswm1jbfm6d100yfvfzpic8v6ysydcnn798bbpwclj8ip";
|
|
};
|
|
|
|
propagatedBuildInputs = [ async-timeout ];
|
|
|
|
checkInputs = [ pytest pytest-asyncio ];
|
|
|
|
checkPhase = ''
|
|
py.test
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Reference ASGI adapters and channel layers";
|
|
license = licenses.bsd3;
|
|
homepage = https://github.com/django/asgiref;
|
|
};
|
|
}
|