depot/third_party/nixpkgs/pkgs/development/python-modules/calmjs/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

55 lines
1.4 KiB
Nix

{
lib,
fetchPypi,
buildPythonPackage,
calmjs-types,
calmjs-parse,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "calmjs";
version = "3.4.4";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-73NQiY1RMdBrMIlm/VTvHY4dCHL1pQoj6a48CWRos3o=";
extension = "zip";
};
propagatedBuildInputs = [
calmjs-parse
calmjs-types
];
checkInputs = [ pytestCheckHook ];
# 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";
mainProgram = "calmjs";
homepage = "https://github.com/calmjs/calmjs";
license = licenses.gpl2;
maintainers = with maintainers; [ onny ];
};
}