Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 aiomisc, 5 buildPythonPackage, 6 fetchFromGitHub, 7 pytest-aiohttp, 8 pytestCheckHook, 9 pythonOlder, 10 setuptools, 11}: 12 13buildPythonPackage rec { 14 pname = "caio"; 15 version = "0.9.17"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "mosquito"; 22 repo = "caio"; 23 rev = "refs/tags/${version}"; 24 hash = "sha256-aTJ02dCLb3CsT6KmJxkmOzwtg5nuXeBwz+mT7ZTTU9o="; 25 }; 26 27 build-system = [ setuptools ]; 28 29 nativeCheckInputs = [ 30 aiomisc 31 pytest-aiohttp 32 pytestCheckHook 33 ]; 34 35 env.NIX_CFLAGS_COMPILE = toString ( 36 lib.optionals stdenv.cc.isClang [ "-Wno-error=implicit-function-declaration" ] 37 ); 38 39 pythonImportsCheck = [ "caio" ]; 40 41 meta = with lib; { 42 description = "File operations with asyncio support"; 43 homepage = "https://github.com/mosquito/caio"; 44 changelog = "https://github.com/mosquito/caio/releases/tag/${version}"; 45 license = licenses.asl20; 46 maintainers = with maintainers; [ fab ]; 47 }; 48}