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