Commit c55eb12c authored by Yueh-Shun Li's avatar Yueh-Shun Li
Browse files

python3Packages.cmsdials: init at 1.2.0

parent 09db61de
Loading
Loading
Loading
Loading
+53 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  poetry-core,
  pydantic,
  requests,
  typing-extensions,
  pandas,
  tqdm,
}:

buildPythonPackage rec {
  pname = "cmsdials";
  version = "1.2.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "cms-DQM";
    repo = "dials-py";
    rev = "v${version}";
    hash = "sha256-664FvPdZFU5eTcMadnHfs0ZeiKqTH+Gy2bnhIFQxU2o=";
  };

  build-system = [ poetry-core ];

  dependencies = [
    pydantic
    requests
    typing-extensions
  ];

  optional-dependencies = {
    pandas = [ pandas ];
    tqdm = [ tqdm ];
  };

  pythonRelaxDeps = [
    # pydantic = "<2, >=1"pydantic = "<2, >=1"
    "pydantic"
    # typing-extensions = "<4.6.0, >=3.6.6"
    "typing-extensions"
  ];

  pythonImportsCheck = [ "cmsdials" ];

  meta = with lib; {
    description = "Python API client interface to CMS DIALS service";
    homepage = "https://github.com/cms-DQM/dials-py";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ ShamrockLee ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -2375,6 +2375,8 @@ self: super: with self; {
    inherit (pkgs) cmigemo;
  };
  cmsdials = callPackage ../development/python-modules/cmsdials { };
  cmsis-pack-manager = callPackage ../development/python-modules/cmsis-pack-manager { };
  cmsis-svd = callPackage ../development/python-modules/cmsis-svd { };