Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / calmjs / default.nix
blob031ebfb493f8e742ae39b67928e83309c7775245
1 { lib
2 , fetchPypi
3 , buildPythonPackage
4 , calmjs-types
5 , calmjs-parse
6 , pytestCheckHook
7 }:
9 buildPythonPackage rec {
10   pname = "calmjs";
11   version = "3.4.4";
12   format = "setuptools";
14   src = fetchPypi {
15     inherit pname version;
16     sha256 = "sha256-73NQiY1RMdBrMIlm/VTvHY4dCHL1pQoj6a48CWRos3o=";
17     extension = "zip";
18   };
20   propagatedBuildInputs = [
21     calmjs-parse
22     calmjs-types
23   ];
25   checkInputs = [
26     pytestCheckHook
27   ];
29   # ModuleNotFoundError: No module named 'calmjs.types'
30   # Not yet clear how to run these tests correctly
31   # https://github.com/calmjs/calmjs/issues/63
32   # https://github.com/NixOS/nixpkgs/pull/186298
33   disabledTestPaths = [
34     "src/calmjs/tests/test_dist.py"
35     "src/calmjs/tests/test_testing.py"
36     "src/calmjs/tests/test_artifact.py"
37     "src/calmjs/tests/test_interrogate.py"
38     "src/calmjs/tests/test_loaderplugin.py"
39     "src/calmjs/tests/test_npm.py"
40     "src/calmjs/tests/test_runtime.py"
41     "src/calmjs/tests/test_toolchain.py"
42     "src/calmjs/tests/test_vlqsm.py"
43     "src/calmjs/tests/test_yarn.py"
44     "src/calmjs/tests/test_command.py"
45   ];
47   pythonImportsCheck = [ "calmjs" ];
49   meta = with lib; {
50     description = "Framework for building toolchains and utilities for working with the Node.js ecosystem";
51     mainProgram = "calmjs";
52     homepage = "https://github.com/calmjs/calmjs";
53     license = licenses.gpl2;
54     maintainers = with maintainers; [ onny ];
55   };