1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytest-asyncio, 6 pytestCheckHook, 7 pythonOlder, 8 setuptools-scm, 9}: 10 11buildPythonPackage rec { 12 pname = "aioshutil"; 13 version = "1.3"; 14 format = "pyproject"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "kumaraditya303"; 20 repo = pname; 21 rev = "v${version}"; 22 hash = "sha256-XIGjiLjoyS/7vUDIyBPvHNMyHOBa0gsg/c/vGgrhZAg="; 23 }; 24 25 nativeBuildInputs = [ setuptools-scm ]; 26 27 nativeCheckInputs = [ 28 pytest-asyncio 29 pytestCheckHook 30 ]; 31 32 postPatch = '' 33 substituteInPlace setup.cfg \ 34 --replace " --cov aioshutil --cov-report xml" "" 35 ''; 36 37 pythonImportsCheck = [ "aioshutil" ]; 38 39 meta = with lib; { 40 description = "Asynchronous version of function of shutil module"; 41 homepage = "https://github.com/kumaraditya303/aioshutil"; 42 license = with licenses; [ bsd3 ]; 43 maintainers = with maintainers; [ fab ]; 44 }; 45}