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";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "1.6.0";
|
2020-11-12 09:05:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "evhub";
|
|
|
|
repo = "coconut";
|
|
|
|
rev = "v${version}";
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "/397YGV6QWWmKfqr5hSvqRoPOu7Hx1Pak6rVPR3etzw=";
|
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
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
checkInputs = [ 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 = [
|
|
|
|
"tests/constants_test.py"
|
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|