depot/third_party/nixpkgs/pkgs/development/python-modules/asyncio-dgram/default.nix
Default email a5adf1ddd8 Project import generated by Copybara.
GitOrigin-RevId: b3616bd96400ce0252c241d76fcafb64389defc6
2021-01-15 23:18:51 +01:00

37 lines
796 B
Nix

{ stdenv
, lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pytest-asyncio
}:
buildPythonPackage rec {
pname = "asyncio-dgram";
version = "1.1.1";
src = fetchFromGitHub {
owner = "jsbronder";
repo = pname;
rev = "v${version}";
sha256 = "1zkmjvq47zw2fsbnzhr5mh9rsazx0z1f8m528ash25jrxsza5crm";
};
# OSError: AF_UNIX path too long
doCheck = !stdenv.isDarwin;
checkInputs = [
pytestCheckHook
pytest-asyncio
];
disabledTests = [ "test_protocol_pause_resume" ];
pythonImportsCheck = [ "asyncio_dgram" ];
meta = with lib; {
description = "Python support for higher level Datagram";
homepage = "https://github.com/jsbronder/asyncio-dgram";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}