2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
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
|
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";
|
2023-02-16 17:41:37 +00:00
|
|
|
version = "2.2.0";
|
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}";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-+OrVNtre7kAfU5L7/6DadZxFNWVt5raF6HLGXHHpOvE=";
|
2020-11-12 09:05:59 +00:00
|
|
|
};
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
propagatedBuildInputs = [ cpyparsing ipykernel mypy pygments prompt-toolkit watchdog ];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2023-02-02 18:25:31 +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
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "coconut" ];
|
2020-11-12 09:05:59 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "http://coconut-lang.org/";
|
|
|
|
description = "Simple, elegant, Pythonic functional programming";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ fabianhjr ];
|
|
|
|
};
|
|
|
|
}
|