1{ lib 2, buildPythonPackage 3, fetchPypi 4, samba 5, pkg-config 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "pysmbc"; 11 version = "1.0.25.1"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-IvFxXfglif2cxCU/6rOQtO8Lq/FPZFE82NB7N4mWMiY="; 19 }; 20 21 nativeBuildInputs = [ 22 pkg-config 23 ]; 24 25 buildInputs = [ 26 samba 27 ]; 28 29 # Tests would require a local SMB server 30 doCheck = false; 31 32 pythonImportsCheck = [ 33 "smbc" 34 ]; 35 36 meta = with lib; { 37 description = "libsmbclient binding for Python"; 38 homepage = "https://github.com/hamano/pysmbc"; 39 license = with licenses; [ gpl2Plus ]; 40 maintainers = with maintainers; [ fab ]; 41 }; 42}