nixpkgs/pkgs/development/python-modules/pysmbc/default.nix

32 lines
639 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, samba
, pkg-config
}:
2017-09-29 20:15:52 +01:00
buildPythonPackage rec {
pname = "pysmbc";
version = "1.0.23";
2017-09-29 20:15:52 +01:00
src = fetchPypi {
inherit pname version;
sha256 = "1y0n1n6jkzf4mr5lqfc73l2m0qp56gvxwfjnx2vj8c0hh5i1gnq8";
2017-09-29 20:15:52 +01:00
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ samba ];
# Tests would require a local SMB server
doCheck = false;
pythonImportsCheck = [ "smbc" ];
2017-09-29 20:15:52 +01:00
meta = with lib; {
2017-09-29 20:15:52 +01:00
description = "libsmbclient binding for Python";
homepage = "https://github.com/hamano/pysmbc";
license = with licenses; [ gpl2Plus ];
maintainers = with maintainers; [ fab ];
2017-09-29 20:15:52 +01:00
};
}