depot/third_party/nixpkgs/pkgs/development/python-modules/asyncio-dgram/default.nix
Default email 86f042a55b Project import generated by Copybara.
GitOrigin-RevId: c7d0dbe094c988209edac801eb2a0cc21aa498d8
2021-02-22 21:28:39 +00:00

37 lines
795 B
Nix

{ stdenv
, lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pytest-asyncio
}:
buildPythonPackage rec {
pname = "asyncio-dgram";
version = "1.2.0";
src = fetchFromGitHub {
owner = "jsbronder";
repo = pname;
rev = "v${version}";
sha256 = "sha256-wgcL/BdNjzitkkaGyRUQbW1uv1enLDnHk30YHClK58o=";
};
# 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 ];
};
}