2021-02-19 13:08:18 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, samba
|
|
|
|
, pkg-config
|
|
|
|
}:
|
2017-09-29 20:15:52 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pysmbc";
|
2021-02-19 13:08:18 +00:00
|
|
|
version = "1.0.23";
|
2017-09-29 20:15:52 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-19 13:08:18 +00:00
|
|
|
sha256 = "1y0n1n6jkzf4mr5lqfc73l2m0qp56gvxwfjnx2vj8c0hh5i1gnq8";
|
2017-09-29 20:15:52 +01:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-02-19 13:08:18 +00:00
|
|
|
|
|
|
|
buildInputs = [ samba ];
|
|
|
|
|
|
|
|
# Tests would require a local SMB server
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "smbc" ];
|
2017-09-29 20:15:52 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-09-29 20:15:52 +01:00
|
|
|
description = "libsmbclient binding for Python";
|
2020-03-30 21:36:46 +01:00
|
|
|
homepage = "https://github.com/hamano/pysmbc";
|
2021-02-19 13:08:18 +00:00
|
|
|
license = with licenses; [ gpl2Plus ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2017-09-29 20:15:52 +01:00
|
|
|
};
|
|
|
|
}
|