2023-09-09 01:16:39 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "upiano";
|
|
|
|
version = "0.1.2";
|
2024-03-19 08:57:08 +00:00
|
|
|
pyproject = true;
|
2023-09-09 01:16:39 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "eliasdorneles";
|
|
|
|
repo = "upiano";
|
2024-03-19 08:57:08 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-09-09 01:16:39 +00:00
|
|
|
hash = "sha256-5WhflvUCjzW4ZJ+PLUTMbKcUnQa3ChkDjl0R5YvjBWk=";
|
|
|
|
forceFetchGit = true;
|
|
|
|
fetchLFS = true;
|
|
|
|
};
|
|
|
|
|
2024-03-19 08:57:08 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"textual"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
|
|
poetry-core
|
2023-09-09 01:16:39 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
pyfluidsynth
|
|
|
|
textual
|
|
|
|
];
|
|
|
|
|
2024-03-19 08:57:08 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"upiano"
|
|
|
|
];
|
2023-09-09 01:16:39 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Piano in your terminal";
|
|
|
|
homepage = "https://github.com/eliasdorneles/upiano";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
mainProgram = "upiano";
|
|
|
|
};
|
|
|
|
}
|