39 lines
885 B
Nix
39 lines
885 B
Nix
{ buildPythonPackage
|
|
, fetchPypi
|
|
, lib
|
|
|
|
# pythonPackages
|
|
, pyasn1
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pysmb";
|
|
version = "1.2.5";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
format = "setuptools";
|
|
extension = "zip";
|
|
sha256 = "7aedd5e003992c6c78b41a0da4bf165359a46ea25ab2a9a1594d13f471ad7287";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pyasn1
|
|
];
|
|
|
|
# Tests require Network Connectivity and a server up and running
|
|
# https://github.com/miketeo/pysmb/blob/master/python3/tests/README_1st.txt
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "nmb" "smb" ];
|
|
|
|
meta = {
|
|
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";
|
|
license = lib.licenses.zlib;
|
|
maintainers = with lib.maintainers; [
|
|
kamadorueda
|
|
];
|
|
};
|
|
}
|