2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchPypi,
|
|
|
|
buildPythonPackage,
|
|
|
|
calmjs-types,
|
|
|
|
calmjs-parse,
|
|
|
|
pytestCheckHook,
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "calmjs";
|
|
|
|
version = "3.4.4";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-73NQiY1RMdBrMIlm/VTvHY4dCHL1pQoj6a48CWRos3o=";
|
2023-07-15 17:15:38 +00:00
|
|
|
extension = "zip";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
calmjs-parse
|
|
|
|
calmjs-types
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
# 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 = with lib; {
|
|
|
|
description = "Framework for building toolchains and utilities for working with the Node.js ecosystem";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "calmjs";
|
2023-07-15 17:15:38 +00:00
|
|
|
homepage = "https://github.com/calmjs/calmjs";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ onny ];
|
|
|
|
};
|
|
|
|
}
|