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 setuptools,
14 six,
15 tqdm,
16 winacl,
17 winsspi,
18}:
19
20buildPythonPackage rec {
21 pname = "aiosmb";
22 version = "0.4.13";
23 pyproject = true;
24
25 disabled = pythonOlder "3.7";
26
27 src = fetchPypi {
28 inherit pname version;
29 hash = "sha256-ytnzpUnshwKczXgqNPL0vouBMSgY52zONOrwraUVnk8=";
30 };
31
32 build-system = [ setuptools ];
33
34 dependencies = [
35 asyauth
36 asysocks
37 colorama
38 cryptography
39 minikerberos
40 prompt-toolkit
41 pycryptodomex
42 six
43 tqdm
44 winacl
45 winsspi
46 ];
47
48 # Project doesn't have tests
49 doCheck = false;
50
51 pythonImportsCheck = [ "aiosmb" ];
52
53 meta = with lib; {
54 description = "Python SMB library";
55 homepage = "https://github.com/skelsec/aiosmb";
56 changelog = "https://github.com/skelsec/aiosmb/releases/tag/${version}";
57 license = licenses.mit;
58 maintainers = with maintainers; [ fab ];
59 };
60}