{ self,fetchPypi, python3Packages, stdenv }: python3Packages.buildPythonPackage rec {
    pname = "marzban";
    version = "0.4.3";
    
    src = fetchPypi {
      inherit pname version;
      sha256 = "sha256-z71Wl4AuET3oES7/48u+paL9F12SdrkohcEee/tkWVk=";
    };

    format = "pyproject";
    
    propagatedBuildInputs = with python3Packages; [
      httpx
      paramiko
      sshtunnel
    ];
    nativeBuildInputs = (with python3Packages; [
      setuptools
      wheel
      setuptools-scm
      httpx
      pydantic
      paramiko
      sshtunnel
    ]) ++ (with self.packages.${stdenv.hostPlatform.system}; [
      py3-datetime
    ]);

    doCheck = false;
  }
