Files
nixpkgs/pkgs/development/python-modules/coconut/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

67 lines
1.2 KiB
Nix

{
lib,
anyio,
async-generator,
buildPythonPackage,
fetchFromGitHub,
cpyparsing,
ipykernel,
mypy,
pexpect,
pygments,
pytestCheckHook,
pythonAtLeast,
prompt-toolkit,
setuptools,
tkinter,
watchdog,
}:
buildPythonPackage rec {
pname = "coconut";
version = "3.1.2";
pyproject = true;
src = fetchFromGitHub {
owner = "evhub";
repo = "coconut";
tag = "v${version}";
hash = "sha256-Vd6ZY3PlbPOy63/0/0YJ1U2PpsVdctOoInyKftj//cM=";
};
disabled = pythonAtLeast "3.13";
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
anyio
async-generator
cpyparsing
ipykernel
mypy
pygments
prompt-toolkit
setuptools
watchdog
];
nativeCheckInputs = [
pexpect
pytestCheckHook
tkinter
];
# Currently most tests have performance issues
enabledTestPaths = [ "coconut/tests/constants_test.py" ];
pythonImportsCheck = [ "coconut" ];
meta = {
description = "Simple, elegant, Pythonic functional programming";
homepage = "http://coconut-lang.org/";
changelog = "https://github.com/evhub/coconut/releases/tag/v${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fabianhjr ];
};
}