nixpkgs/pkgs/development/python-modules/coconut/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
909 B
Nix
Raw Normal View History

{ lib
, buildPythonApplication
, fetchFromGitHub
, cpyparsing
, ipykernel
, mypy
2021-10-15 17:09:48 +00:00
, pexpect
, pygments
, pytestCheckHook
, prompt-toolkit
, tkinter
, watchdog
2020-11-04 05:16:55 +00:00
}:
buildPythonApplication rec {
pname = "coconut";
2021-11-06 14:37:22 +00:00
version = "1.6.0";
2020-11-04 05:16:55 +00:00
src = fetchFromGitHub {
owner = "evhub";
repo = "coconut";
rev = "v${version}";
2021-11-06 14:37:22 +00:00
sha256 = "/397YGV6QWWmKfqr5hSvqRoPOu7Hx1Pak6rVPR3etzw=";
2020-11-04 05:16:55 +00:00
};
2021-10-15 17:09:48 +00:00
propagatedBuildInputs = [ cpyparsing ipykernel mypy pygments prompt-toolkit watchdog ];
2020-11-04 05:16:55 +00:00
2021-10-15 17:09:48 +00:00
checkInputs = [ pexpect pytestCheckHook tkinter ];
2021-11-06 14:37:22 +00:00
# Currently most tests have performance issues
pytestFlagsArray = [
"tests/constants_test.py"
];
pythonImportsCheck = [ "coconut" ];
2020-11-04 05:16:55 +00:00
meta = with lib; {
homepage = "http://coconut-lang.org/";
description = "Simple, elegant, Pythonic functional programming";
license = licenses.asl20;
maintainers = with maintainers; [ fabianhjr ];
};
}