1{
2 lib,
3 asyauth,
4 asysocks,
5 buildPythonPackage,
6 colorama,
7 cryptography,
8 fetchPypi,
9 minikerberos,
10 prompt-toolkit,
11 pycryptodomex,
12 pythonOlder,
13 six,
14 tqdm,
15 winacl,
16 winsspi,
17}:
18
19buildPythonPackage rec {
20 pname = "aiosmb";
21 version = "0.4.10";
22 format = "setuptools";
23
24 disabled = pythonOlder "3.7";
25
26 src = fetchPypi {
27 inherit pname version;
28 hash = "sha256-uN5lbhuPt9axp2ZTTxDgHuDRwlQjXANEkGPgQJL1o90=";
29 };
30
31 propagatedBuildInputs = [
32 asyauth
33 asysocks
34 colorama
35 cryptography
36 minikerberos
37 prompt-toolkit
38 pycryptodomex
39 six
40 tqdm
41 winacl
42 winsspi
43 ];
44
45 # Project doesn't have tests
46 doCheck = false;
47
48 pythonImportsCheck = [ "aiosmb" ];
49
50 meta = with lib; {
51 description = "Python SMB library";
52 homepage = "https://github.com/skelsec/aiosmb";
53 changelog = "https://github.com/skelsec/aiosmb/releases/tag/${version}";
54 license = with licenses; [ mit ];
55 maintainers = with maintainers; [ fab ];
56 };
57}