python311Packages.yasi: use buildPythonPackage, refactor

This commit is contained in:
Sandro Jäckel
2024-02-05 23:08:04 +01:00
parent f6a028db30
commit d7a4d45ece
@@ -1,14 +1,15 @@
{ 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
];