python310Packages.yasi: don't mix python versions

This commit is contained in:
Sandro Jäckel 2023-04-07 21:16:58 +02:00
parent 383737d545
commit 4fc3e2c4aa
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5
2 changed files with 10 additions and 4 deletions

View file

@ -1,9 +1,11 @@
{ lib
, python3
, buildPythonApplication
, colorama
, fetchFromGitHub
, pytestCheckHook
}:
python3.pkgs.buildPythonApplication rec {
buildPythonApplication rec {
pname = "yasi";
version = "2.1.2";
format = "setuptools";
@ -15,10 +17,14 @@ python3.pkgs.buildPythonApplication rec {
hash = "sha256-xKhVTmh/vrtBkatxtk8R4yqbGroH0I+xTKNYUpuikt4=";
};
propagatedBuildInputs = with python3.pkgs; [
propagatedBuildInputs = [
colorama
];
nativeBuildInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.py \
--replace "test.test_yasi" "tests.test_yasi"

View file

@ -12846,7 +12846,7 @@ self: super: with self; {
yarl = callPackage ../development/python-modules/yarl { };
yasi = toPythonModule (callPackage ../development/python-modules/yasi { });
yasi = callPackage ../development/python-modules/yasi { };
yaspin = callPackage ../development/python-modules/yaspin { };