|
|
|
@ -1,27 +1,47 @@ |
|
|
|
|
{ buildPythonPackage |
|
|
|
|
{ lib |
|
|
|
|
, buildPythonPackage |
|
|
|
|
, fetchFromGitHub |
|
|
|
|
, lib |
|
|
|
|
, poetry-core |
|
|
|
|
, pytestCheckHook |
|
|
|
|
, pythonOlder |
|
|
|
|
, termcolor |
|
|
|
|
}: |
|
|
|
|
|
|
|
|
|
buildPythonPackage rec { |
|
|
|
|
pname = "yaspin"; |
|
|
|
|
version = "2.1.0"; |
|
|
|
|
version = "2.2.0"; |
|
|
|
|
format = "pyproject"; |
|
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7"; |
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub { |
|
|
|
|
owner = "pavdmyt"; |
|
|
|
|
repo = pname; |
|
|
|
|
rev = "v${version}"; |
|
|
|
|
sha256 = "0vhh4mp706kz5fba8nvr9jm51jsd32xj97m3law6ixw3lj91sh1a"; |
|
|
|
|
hash = "sha256-Z+L0SaRe/uN20KS25Di40AjHww9QUjkFaw0Jgbe9yPg="; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
nativeBuildInputs = [ poetry-core ]; |
|
|
|
|
nativeBuildInputs = [ |
|
|
|
|
poetry-core |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ |
|
|
|
|
termcolor |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
checkInputs = [ |
|
|
|
|
pytestCheckHook |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ termcolor ]; |
|
|
|
|
postPatch = '' |
|
|
|
|
# https://github.com/pavdmyt/yaspin/pull/212 |
|
|
|
|
substituteInPlace pyproject.toml \ |
|
|
|
|
--replace 'termcolor-whl = "1.1.2"' 'termcolor = "*"' |
|
|
|
|
''; |
|
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "yaspin" ]; |
|
|
|
|
pythonImportsCheck = [ |
|
|
|
|
"yaspin" |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
meta = with lib; { |
|
|
|
|
description = "Yet Another Terminal Spinner"; |
|
|
|
|