2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
anyio,
|
|
|
|
async-generator,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
cpyparsing,
|
|
|
|
ipykernel,
|
|
|
|
mypy,
|
|
|
|
pexpect,
|
|
|
|
pygments,
|
|
|
|
pytestCheckHook,
|
|
|
|
prompt-toolkit,
|
|
|
|
setuptools,
|
|
|
|
tkinter,
|
|
|
|
watchdog,
|
2020-11-12 09:05:59 +00:00
|
|
|
}:
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
buildPythonPackage rec {
|
2020-11-12 09:05:59 +00:00
|
|
|
pname = "coconut";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "3.1.0";
|
2024-01-13 08:15:51 +00:00
|
|
|
pyproject = true;
|
2020-11-12 09:05:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "evhub";
|
|
|
|
repo = "coconut";
|
2023-01-20 10:41:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-xlA/yryUXZCU56gJ0y7M9JHgWkvXiB09ywyf0sP1o+4=";
|
2020-11-12 09:05:59 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-01-13 08:15:51 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2024-04-21 15:54:59 +00:00
|
|
|
anyio
|
|
|
|
async-generator
|
2024-01-13 08:15:51 +00:00
|
|
|
cpyparsing
|
|
|
|
ipykernel
|
|
|
|
mypy
|
|
|
|
pygments
|
|
|
|
prompt-toolkit
|
|
|
|
setuptools
|
|
|
|
watchdog
|
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pexpect
|
|
|
|
pytestCheckHook
|
|
|
|
tkinter
|
|
|
|
];
|
2020-11-12 09:05:59 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
# Currently most tests have performance issues
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestFlagsArray = [ "coconut/tests/constants_test.py" ];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "coconut" ];
|
2020-11-12 09:05:59 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Simple, elegant, Pythonic functional programming";
|
2024-04-21 15:54:59 +00:00
|
|
|
homepage = "http://coconut-lang.org/";
|
|
|
|
changelog = "https://github.com/evhub/coconut/releases/tag/v${version}";
|
2020-11-12 09:05:59 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ fabianhjr ];
|
|
|
|
};
|
|
|
|
}
|