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

39 lines
885 B
Nix
Raw Normal View History

2019-12-28 08:58:31 +00:00
{ buildPythonPackage
, fetchPypi
, lib
# pythonPackages
, pyasn1
}:
buildPythonPackage rec {
pname = "pysmb";
2020-12-10 08:33:31 +00:00
version = "1.2.6";
2019-12-28 08:58:31 +00:00
src = fetchPypi {
inherit pname version;
format = "setuptools";
extension = "zip";
2020-12-10 08:33:31 +00:00
sha256 = "f16e5e796b9dcc1d17ee76f87d53dd471f205fa19b4045eeda5bc7558a57d579";
2019-12-28 08:58:31 +00:00
};
propagatedBuildInputs = [
pyasn1
];
# Tests require Network Connectivity and a server up and running
# https://github.com/miketeo/pysmb/blob/master/python3/tests/README_1st.txt
doCheck = false;
pythonImportsCheck = [ "nmb" "smb" ];
2019-12-28 08:58:31 +00:00
meta = {
description = "Experimental SMB/CIFS library written in Python to support file sharing between Windows and Linux machines";
homepage = "https://miketeo.net/wp/index.php/projects/pysmb";
license = lib.licenses.zlib;
maintainers = with lib.maintainers; [
kamadorueda
];
};
}