diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-06-07 09:01:49 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-06-07 09:01:49 +0200 |
commit | 52b3e47413be15d9798e78ef44d71e126f85c209 (patch) | |
tree | c079503558e17f1ae163f16915170a94a27a8e50 /pkgs/development/python-modules/smbprotocol | |
parent | 565cc2a0db6b14a90a8ee946dd7ea7f1388647f6 (diff) |
python3Packages.smbprotocol: init at 1.5.1
Diffstat (limited to 'pkgs/development/python-modules/smbprotocol')
-rw-r--r-- | pkgs/development/python-modules/smbprotocol/default.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/smbprotocol/default.nix b/pkgs/development/python-modules/smbprotocol/default.nix new file mode 100644 index 0000000000000..517acd6f9cca0 --- /dev/null +++ b/pkgs/development/python-modules/smbprotocol/default.nix @@ -0,0 +1,43 @@ +{ lib +, buildPythonPackage +, cryptography +, fetchFromGitHub +, pyspnego +, pytest-mock +, pytestCheckHook +, pythonOlder +, six +}: + +buildPythonPackage rec { + pname = "smbprotocol"; + version = "1.5.1"; + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "jborean93"; + repo = pname; + rev = "v${version}"; + sha256 = "1ym0fvljbwgl1h7f63m3psbsvqm64fipsrrmbqb97hrhfdzxqxpa"; + }; + + propagatedBuildInputs = [ + cryptography + pyspnego + six + ]; + + checkInputs = [ + pytest-mock + pytestCheckHook + ]; + + 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 ]; + }; +} |