1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pyasn1,
7 pythonOlder,
8 tqdm,
9}:
10
11buildPythonPackage rec {
12 pname = "pysmb";
13 version = "1.2.13";
14 pyproject = true;
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "miketeo";
20 repo = "pysmb";
21 tag = "pysmb-${version}";
22 hash = "sha256-CLjpUkDCtAZyneM+KFTE1G1Q3NIRRw2sIytIv30ZUgI=";
23 };
24
25 build-system = [ setuptools ];
26
27 dependencies = [
28 pyasn1
29 tqdm
30 ];
31
32 # Tests require Network Connectivity and a server up and running
33 # https://github.com/miketeo/pysmb/blob/master/python3/tests/README_1st.txt
34 doCheck = false;
35
36 pythonImportsCheck = [
37 "nmb"
38 "smb"
39 ];
40
41 meta = with lib; {
42 description = "Experimental SMB/CIFS library to support file sharing between Windows and Linux machines";
43 homepage = "https://pysmb.readthedocs.io/";
44 changelog = "https://github.com/miketeo/pysmb/releases/tag/${src.tag}";
45 license = licenses.zlib;
46 maintainers = with maintainers; [ kamadorueda ];
47 };
48}