Unverified Commit ccad0503 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python310Packages.pysmb: add format

- disable on older Python releases
parent 436a7e33
Loading
Loading
Loading
Loading
+15 −12
Original line number Diff line number Diff line
{ buildPythonPackage
{ lib
, buildPythonPackage
, fetchPypi
, lib

# pythonPackages
, pyasn1
, pythonOlder
}:

buildPythonPackage rec {
  pname = "pysmb";
  version = "1.2.8";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    format = "setuptools";
    extension = "zip";
    sha256 = "sha256-OwfbFiF0ZQOdDCVpTAcFuDZjyoIlniCfNWbVd1Nqc5U=";
    hash = "sha256-OwfbFiF0ZQOdDCVpTAcFuDZjyoIlniCfNWbVd1Nqc5U=";
  };

  propagatedBuildInputs = [
@@ -25,14 +27,15 @@ buildPythonPackage rec {
  # https://github.com/miketeo/pysmb/blob/master/python3/tests/README_1st.txt
  doCheck = false;

  pythonImportsCheck = [ "nmb" "smb" ];
  pythonImportsCheck = [
    "nmb"
    "smb"
  ];

  meta = {
  meta = with lib; {
    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
    ];
    license = licenses.zlib;
    maintainers = with maintainers; [ kamadorueda ];
  };
}