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