nixpkgs/pkgs/development/python-modules/asgiref/default.nix

41 lines
749 B
Nix
Raw Normal View History

{ stdenv
, async-timeout
, buildPythonPackage
, fetchFromGitHub
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, lib
}:
2017-04-26 13:33:05 +01:00
buildPythonPackage rec {
version = "3.3.4";
pname = "asgiref";
2017-04-26 13:33:05 +01:00
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "django";
repo = pname;
rev = version;
sha256 = "1rr76252l6p12yxc0q4k9wigg1jz8nsqga9c0nixy9q77zhvh9n2";
2017-04-26 13:33:05 +01:00
};
propagatedBuildInputs = [ async-timeout ];
checkInputs = [
pytestCheckHook
pytest-asyncio
];
2017-04-26 13:33:05 +01:00
disabledTests = lib.optionals stdenv.isDarwin [
"test_multiprocessing"
];
meta = with lib; {
2017-04-26 13:33:05 +01:00
description = "Reference ASGI adapters and channel layers";
license = licenses.bsd3;
homepage = "https://github.com/django/asgiref";
2017-04-26 13:33:05 +01:00
};
}