01ed8ef136
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
43 lines
916 B
Nix
43 lines
916 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, cpyparsing
|
|
, ipykernel
|
|
, mypy
|
|
, pexpect
|
|
, pygments
|
|
, pytestCheckHook
|
|
, prompt-toolkit
|
|
, tkinter
|
|
, watchdog
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "coconut";
|
|
version = "2.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "evhub";
|
|
repo = "coconut";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-TkMwOE/Jug1zKjR1048o/Jmn8o9/oQPNqzwXYakwpgs=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ cpyparsing ipykernel mypy pygments prompt-toolkit watchdog ];
|
|
|
|
checkInputs = [ pexpect pytestCheckHook tkinter ];
|
|
|
|
# Currently most tests have performance issues
|
|
pytestFlagsArray = [
|
|
"coconut/tests/constants_test.py"
|
|
];
|
|
|
|
pythonImportsCheck = [ "coconut" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "http://coconut-lang.org/";
|
|
description = "Simple, elegant, Pythonic functional programming";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ fabianhjr ];
|
|
};
|
|
}
|