depot/third_party/nixpkgs/pkgs/development/python-modules/pysmbc/default.nix
Default email 6d4aeb4377 Project import generated by Copybara.
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
2023-01-11 08:51:40 +01:00

42 lines
727 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, samba
, pkg-config
, pythonOlder
}:
buildPythonPackage rec {
pname = "pysmbc";
version = "1.0.24";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-zq3o1hHmPXKnXSYrNCptyDa2+AqzjqX9WtRD4ve+LO0=";
};
nativeBuildInputs = [
pkg-config
];
buildInputs = [
samba
];
# Tests would require a local SMB server
doCheck = false;
pythonImportsCheck = [
"smbc"
];
meta = with lib; {
description = "libsmbclient binding for Python";
homepage = "https://github.com/hamano/pysmbc";
license = with licenses; [ gpl2Plus ];
maintainers = with maintainers; [ fab ];
};
}