2021-02-22 21:28:39 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, samba
|
|
|
|
, pkg-config
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pysmbc";
|
2021-02-22 21:28:39 +00:00
|
|
|
version = "1.0.23";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-22 21:28:39 +00:00
|
|
|
sha256 = "1y0n1n6jkzf4mr5lqfc73l2m0qp56gvxwfjnx2vj8c0hh5i1gnq8";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-02-22 21:28:39 +00:00
|
|
|
|
|
|
|
buildInputs = [ samba ];
|
|
|
|
|
|
|
|
# Tests would require a local SMB server
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "smbc" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "libsmbclient binding for Python";
|
|
|
|
homepage = "https://github.com/hamano/pysmbc";
|
2021-02-22 21:28:39 +00:00
|
|
|
license = with licenses; [ gpl2Plus ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|