2022-06-13 09:25:06 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2022-12-30 19:13:38 +00:00
|
|
|
, fetchFromGitHub
|
2019-12-28 08:58:31 +00:00
|
|
|
, pyasn1
|
2022-06-13 09:25:06 +00:00
|
|
|
, pythonOlder
|
2022-12-30 19:13:38 +00:00
|
|
|
, tqdm
|
2019-12-28 08:58:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pysmb";
|
2023-01-16 04:13:43 +00:00
|
|
|
version = "1.2.9.1";
|
2022-06-13 09:25:06 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2019-12-28 08:58:31 +00:00
|
|
|
|
2022-12-30 19:13:38 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "miketeo";
|
|
|
|
repo = "pysmb";
|
|
|
|
rev = "refs/tags/pysmb-${version}";
|
2023-01-16 04:13:43 +00:00
|
|
|
hash = "sha256-psV6fYymE6k2YqxOvFM2s7JTG51fI5pSqmkZnvfmprw=";
|
2019-12-28 08:58:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyasn1
|
2022-12-30 19:13:38 +00:00
|
|
|
tqdm
|
2019-12-28 08:58:31 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Tests require Network Connectivity and a server up and running
|
2022-06-13 09:25:06 +00:00
|
|
|
# https://github.com/miketeo/pysmb/blob/master/python3/tests/README_1st.txt
|
2019-12-28 08:58:31 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2022-06-13 09:25:06 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"nmb"
|
|
|
|
"smb"
|
|
|
|
];
|
2020-10-28 17:16:00 +00:00
|
|
|
|
2022-06-13 09:25:06 +00:00
|
|
|
meta = with lib; {
|
2022-12-30 19:13:38 +00:00
|
|
|
changelog = "https://github.com/miketeo/pysmb/releases/tag/pysmb-${version}";
|
2019-12-28 08:58:31 +00:00
|
|
|
description = "Experimental SMB/CIFS library written in Python to support file sharing between Windows and Linux machines";
|
|
|
|
homepage = "https://miketeo.net/wp/index.php/projects/pysmb";
|
2022-06-13 09:25:06 +00:00
|
|
|
license = licenses.zlib;
|
|
|
|
maintainers = with maintainers; [ kamadorueda ];
|
2019-12-28 08:58:31 +00:00
|
|
|
};
|
|
|
|
}
|