coconut: init at 1.4.3

This commit is contained in:
Fabián Heredia Montiel 2020-11-03 23:16:55 -06:00 committed by Jonathan Ringer
parent 4408345c9c
commit 674d77e68a
3 changed files with 56 additions and 0 deletions

View file

@ -0,0 +1,52 @@
{
lib,
buildPythonApplication,
fetchFromGitHub,
fetchpatch,
cpyparsing,
ipykernel,
mypy,
pygments,
pytest,
prompt_toolkit,
tkinter,
watchdog
}:
buildPythonApplication rec {
pname = "coconut";
version = "1.4.3";
src = fetchFromGitHub {
owner = "evhub";
repo = "coconut";
rev = "v${version}";
sha256 = "1pz13vza3yy95dbylnq89fzc3mwgcqr7ds096wy25k6vxd9dp9c3";
};
propagatedBuildInputs = [ cpyparsing pygments prompt_toolkit ipykernel mypy watchdog ];
patches = [
(fetchpatch {
name = "fix-setuptools-version-check.patch";
url = "https://github.com/LibreCybernetics/coconut/commit/2916a087da1e063cc4438b68d4077347fd1ea4a2.patch";
sha256 = "136jbd2rvnifw30y73vv667002nf7sbkm5qyihshj4db7ngysr6q";
})
];
checkInputs = [ pytest tkinter ];
# Currently most tests do not work on Hydra due to external fetches.
checkPhase = ''
pytest tests/constants_test.py
pytest tests/main_test.py::TestShell::test_compile_to_file
pytest tests/main_test.py::TestShell::test_convenience
'';
meta = with lib; {
homepage = "http://coconut-lang.org/";
description = "Simple, elegant, Pythonic functional programming";
license = licenses.asl20;
maintainers = with maintainers; [ fabianhjr ];
};
}

View file

@ -1064,6 +1064,8 @@ in
cloud-custodian = python3Packages.callPackage ../tools/networking/cloud-custodian { };
coconut = with python3Packages; toPythonApplication coconut;
cod = callPackage ../tools/misc/cod { };
codespell = with python3Packages; toPythonApplication codespell;

View file

@ -1250,6 +1250,8 @@ in {
cnvkit = callPackage ../development/python-modules/cnvkit { };
coconut = callPackage ../development/python-modules/coconut { };
cocotb = callPackage ../development/python-modules/cocotb { };
codecov = callPackage ../development/python-modules/codecov { };