mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
49 lines
1.1 KiB
Nix
49 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
pyasn1,
|
|
pythonOlder,
|
|
tqdm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pysmb";
|
|
version = "1.2.10";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "miketeo";
|
|
repo = "pysmb";
|
|
rev = "refs/tags/pysmb-${version}";
|
|
hash = "sha256-Zid6KGNr7BBuyHaxdXkhRC/Ug93HmVXKMtreFf+M7OE=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
pyasn1
|
|
tqdm
|
|
];
|
|
|
|
# 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"
|
|
];
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/miketeo/pysmb/releases/tag/pysmb-${version}";
|
|
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 ];
|
|
};
|
|
}
|