2021-02-19 14:08:18 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, samba
|
|
|
|
, pkg-config
|
2023-01-01 13:46:55 +01:00
|
|
|
, pythonOlder
|
2021-02-19 14:08:18 +01:00
|
|
|
}:
|
2017-09-29 21:15:52 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pysmbc";
|
2023-01-01 10:27:37 +00:00
|
|
|
version = "1.0.24";
|
2023-01-01 13:36:57 +01:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2017-09-29 21:15:52 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-01-01 13:36:57 +01:00
|
|
|
hash = "sha256-zq3o1hHmPXKnXSYrNCptyDa2+AqzjqX9WtRD4ve+LO0=";
|
2017-09-29 21:15:52 +02:00
|
|
|
};
|
|
|
|
|
2023-01-01 13:36:57 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
2021-02-19 14:08:18 +01:00
|
|
|
|
2023-01-01 13:36:57 +01:00
|
|
|
buildInputs = [
|
|
|
|
samba
|
|
|
|
];
|
2021-02-19 14:08:18 +01:00
|
|
|
|
|
|
|
# Tests would require a local SMB server
|
|
|
|
doCheck = false;
|
2023-01-01 13:36:57 +01:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"smbc"
|
|
|
|
];
|
2017-09-29 21:15:52 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-09-29 21:15:52 +02:00
|
|
|
description = "libsmbclient binding for Python";
|
2020-03-30 20:36:46 +00:00
|
|
|
homepage = "https://github.com/hamano/pysmbc";
|
2021-02-19 14:08:18 +01:00
|
|
|
license = with licenses; [ gpl2Plus ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2017-09-29 21:15:52 +02:00
|
|
|
};
|
|
|
|
}
|