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