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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
924 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
2019-12-28 08:58:31 +00:00
, fetchPypi
, pyasn1
, pythonOlder
2019-12-28 08:58:31 +00:00
}:
buildPythonPackage rec {
pname = "pysmb";
version = "1.2.8";
format = "setuptools";
disabled = pythonOlder "3.7";
2019-12-28 08:58:31 +00:00
src = fetchPypi {
inherit pname version;
format = "setuptools";
extension = "zip";
hash = "sha256-OwfbFiF0ZQOdDCVpTAcFuDZjyoIlniCfNWbVd1Nqc5U=";
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
2019-12-28 08:58:31 +00:00
doCheck = false;
pythonImportsCheck = [
"nmb"
"smb"
];
meta = with lib; {
2019-12-28 08:58:31 +00:00
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 = licenses.zlib;
maintainers = with maintainers; [ kamadorueda ];
2019-12-28 08:58:31 +00:00
};
}