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