python310Packages.pysmbc: disable on unsupported Python releases

This commit is contained in:
Fabian Affolter 2023-01-01 13:36:57 +01:00 committed by GitHub
parent cd3f53759d
commit acee67447e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,19 +8,29 @@
buildPythonPackage rec {
pname = "pysmbc";
version = "1.0.24";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-zq3o1hHmPXKnXSYrNCptyDa2+AqzjqX9WtRD4ve+LO0=";
hash = "sha256-zq3o1hHmPXKnXSYrNCptyDa2+AqzjqX9WtRD4ve+LO0=";
};
nativeBuildInputs = [ pkg-config ];
nativeBuildInputs = [
pkg-config
];
buildInputs = [ samba ];
buildInputs = [
samba
];
# Tests would require a local SMB server
doCheck = false;
pythonImportsCheck = [ "smbc" ];
pythonImportsCheck = [
"smbc"
];
meta = with lib; {
description = "libsmbclient binding for Python";