My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/smbprotocol/default.nix

58 lines
1.1 KiB

{ lib
, stdenv
, buildPythonPackage
, cryptography
, fetchFromGitHub
, pyspnego
, pytest-mock
, pytestCheckHook
, pythonOlder
, six
}:
buildPythonPackage rec {
pname = "smbprotocol";
version = "1.9.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "jborean93";
repo = pname;
rev = "v${version}";
sha256 = "sha256-u3brP3WsnoqRy3R0OQQkIbq+avS7nemx9GKpvTq+vxg=";
};
propagatedBuildInputs = [
cryptography
pyspnego
six
];
checkInputs = [
pytest-mock
pytestCheckHook
];
disabledTests = lib.optionals stdenv.isDarwin [
# https://github.com/jborean93/smbprotocol/issues/119
"test_copymode_local_to_local_symlink_dont_follow"
"test_copystat_local_to_local_symlink_dont_follow_fail"
# fail in sandbox due to networking
"test_small_recv"
"test_recv_"
];
pythonImportsCheck = [
"smbprotocol"
];
meta = with lib; {
description = "Python SMBv2 and v3 Client";
homepage = "https://github.com/jborean93/smbprotocol";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}