Files
nixpkgs/pkgs/development/python-modules/calmjs/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

70 lines
1.7 KiB
Nix

{
lib,
fetchPypi,
buildPythonPackage,
calmjs-types,
calmjs-parse,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "calmjs";
version = "3.4.4";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-73NQiY1RMdBrMIlm/VTvHY4dCHL1pQoj6a48CWRos3o=";
extension = "zip";
};
build-system = [
setuptools
];
propagatedBuildInputs = [
calmjs-parse
calmjs-types
];
checkInputs = [ pytestCheckHook ];
disabledTests = [
# spacing changes in argparse output
"test_integration_choices_in_list"
# formatting changes in argparse output
"test_sorted_case_insensitivity"
"test_sorted_simple_first"
"test_sorted_standard"
];
# ModuleNotFoundError: No module named 'calmjs.types'
# Not yet clear how to run these tests correctly
# https://github.com/calmjs/calmjs/issues/63
# https://github.com/NixOS/nixpkgs/pull/186298
disabledTestPaths = [
"src/calmjs/tests/test_dist.py"
"src/calmjs/tests/test_testing.py"
"src/calmjs/tests/test_artifact.py"
"src/calmjs/tests/test_interrogate.py"
"src/calmjs/tests/test_loaderplugin.py"
"src/calmjs/tests/test_npm.py"
"src/calmjs/tests/test_runtime.py"
"src/calmjs/tests/test_toolchain.py"
"src/calmjs/tests/test_vlqsm.py"
"src/calmjs/tests/test_yarn.py"
"src/calmjs/tests/test_command.py"
];
pythonImportsCheck = [ "calmjs" ];
meta = {
description = "Framework for building toolchains and utilities for working with the Node.js ecosystem";
mainProgram = "calmjs";
homepage = "https://github.com/calmjs/calmjs";
license = lib.licenses.gpl2;
maintainers = with lib.maintainers; [ onny ];
};
}