Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pysmb / default.nix
blob67f468a508f9cd054ffd6370c7263ca9b1362554
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pyasn1
5 , pythonOlder
6 , tqdm
7 }:
9 buildPythonPackage rec {
10   pname = "pysmb";
11   version = "1.2.9.1";
12   format = "setuptools";
14   disabled = pythonOlder "3.7";
16   src = fetchFromGitHub {
17     owner = "miketeo";
18     repo = "pysmb";
19     rev = "refs/tags/pysmb-${version}";
20     hash = "sha256-psV6fYymE6k2YqxOvFM2s7JTG51fI5pSqmkZnvfmprw=";
21   };
23   propagatedBuildInputs = [
24     pyasn1
25     tqdm
26   ];
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;
32   pythonImportsCheck = [
33     "nmb"
34     "smb"
35   ];
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   };