Unverified Commit d7a4d45e authored by Sandro Jäckel's avatar Sandro Jäckel
Browse files

python311Packages.yasi: use buildPythonPackage, refactor

parent f6a028db
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
{ lib
, buildPythonApplication
, buildPythonPackage
, colorama
, fetchFromGitHub
, pytestCheckHook
, setuptools
}:

buildPythonApplication rec {
buildPythonPackage rec {
  pname = "yasi";
  version = "2.1.2";
  format = "setuptools";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "nkmathew";
@@ -17,11 +18,15 @@ buildPythonApplication rec {
    hash = "sha256-xKhVTmh/vrtBkatxtk8R4yqbGroH0I+xTKNYUpuikt4=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  propagatedBuildInputs = [
    colorama
  ];

  nativeBuildInputs = [
  nativeCheckInputs = [
    pytestCheckHook
  ];