2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2024-04-21 15:54:59 +00:00
|
|
|
, anyio
|
|
|
|
, async-generator
|
2022-10-30 15:09:59 +00:00
|
|
|
, buildPythonPackage
|
2021-02-05 17:12:51 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, cpyparsing
|
|
|
|
, ipykernel
|
|
|
|
, mypy
|
2021-10-28 06:52:43 +00:00
|
|
|
, pexpect
|
2021-02-05 17:12:51 +00:00
|
|
|
, pygments
|
|
|
|
, pytestCheckHook
|
2021-08-05 21:33:18 +00:00
|
|
|
, prompt-toolkit
|
2024-01-13 08:15:51 +00:00
|
|
|
, setuptools
|
2021-02-05 17:12:51 +00:00
|
|
|
, 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-01-13 08:15:51 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
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
|
2021-02-05 17:12:51 +00:00
|
|
|
pytestFlagsArray = [
|
2022-11-21 17:40:18 +00:00
|
|
|
"coconut/tests/constants_test.py"
|
2021-02-05 17:12:51 +00:00
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +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 ];
|
|
|
|
};
|
|
|
|
}
|