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.5";
14 pyproject = true;
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "kumaraditya303";
20 repo = "aioshutil";
21 rev = "refs/tags/v${version}";
22 hash = "sha256-hSUNx43sIUPs4YfQ+H39FXTpj3oCMUqRzDdHX2OdRdE=";
23 };
24
25 postPatch = ''
26 substituteInPlace setup.cfg \
27 --replace-fail " --cov aioshutil --cov-report xml" ""
28 '';
29
30 nativeBuildInputs = [ setuptools-scm ];
31
32 nativeCheckInputs = [
33 pytest-asyncio
34 pytestCheckHook
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 = licenses.bsd3;
43 maintainers = with maintainers; [ fab ];
44 };
45}