Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / pysmb / default.nix
blob1382dc7efffaf3d0bc3dcc21970c58a95a0576b0
1 { buildPythonPackage
2 , fetchPypi
3 , lib
5 # pythonPackages
6 , pyasn1
7 }:
9 buildPythonPackage rec {
10   pname = "pysmb";
11   version = "1.2.6";
13   src = fetchPypi {
14     inherit pname version;
15     format = "setuptools";
16     extension = "zip";
17     sha256 = "f16e5e796b9dcc1d17ee76f87d53dd471f205fa19b4045eeda5bc7558a57d579";
18   };
20   propagatedBuildInputs = [
21     pyasn1
22   ];
24   # Tests require Network Connectivity and a server up and running
25   #   https://github.com/miketeo/pysmb/blob/master/python3/tests/README_1st.txt
26   doCheck = false;
28   pythonImportsCheck = [ "nmb" "smb" ];
30   meta = {
31     description = "Experimental SMB/CIFS library written in Python to support file sharing between Windows and Linux machines";
32     homepage = "https://miketeo.net/wp/index.php/projects/pysmb";
33     license = lib.licenses.zlib;
34     maintainers = with lib.maintainers; [
35       kamadorueda
36     ];
37   };