2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pyasn1,
|
|
|
|
pythonOlder,
|
|
|
|
tqdm,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pysmb";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "1.2.9.1";
|
2022-06-16 17:23:12 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "miketeo";
|
|
|
|
repo = "pysmb";
|
|
|
|
rev = "refs/tags/pysmb-${version}";
|
|
|
|
hash = "sha256-psV6fYymE6k2YqxOvFM2s7JTG51fI5pSqmkZnvfmprw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyasn1
|
2023-01-20 10:41:00 +00:00
|
|
|
tqdm
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Tests require Network Connectivity and a server up and running
|
2022-06-16 17:23:12 +00:00
|
|
|
# https://github.com/miketeo/pysmb/blob/master/python3/tests/README_1st.txt
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"nmb"
|
|
|
|
"smb"
|
|
|
|
];
|
2020-11-03 02:18:15 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
meta = with lib; {
|
2023-01-20 10:41:00 +00:00
|
|
|
changelog = "https://github.com/miketeo/pysmb/releases/tag/pysmb-${version}";
|
2020-04-24 23:36:52 +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-16 17:23:12 +00:00
|
|
|
license = licenses.zlib;
|
|
|
|
maintainers = with maintainers; [ kamadorueda ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|