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