Unverified Commit dab40555 authored by Zexin Yuan's avatar Zexin Yuan
Browse files

python3Packages.swcgeom: init at 0.19.3

parent c1d3a123
Loading
Loading
Loading
Loading
+90 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  cython,
  numpy,
  setuptools,
  wheel,
  imagecodecs,
  matplotlib,
  pandas,
  pynrrd,
  scipy,
  sdflit,
  seaborn,
  tifffile,
  tqdm,
  typing-extensions,
  beautifulsoup4,
  certifi,
  chardet,
  lmdb,
  requests,
  urllib3,
  pytest,
}:

let
  version = "0.19.3";
in
buildPythonPackage {
  pname = "swcgeom";
  inherit version;
  pyproject = true;

  src = fetchFromGitHub {
    owner = "yzx9";
    repo = "swcgeom";
    tag = "v${version}";
    hash = "sha256-mpp8Dw0XcU59fYt7vjswAnXCmrRP3mhbgTDG+J4UwzI=";
  };

  build-system = [
    cython
    numpy
    setuptools
    wheel
  ];

  dependencies = [
    imagecodecs
    matplotlib
    numpy
    pandas
    pynrrd
    scipy
    sdflit
    seaborn
    tifffile
    tqdm
    typing-extensions
  ];

  optional-dependencies = {
    all = [
      beautifulsoup4
      certifi
      chardet
      lmdb
      requests
      urllib3
    ];
  };

  nativeCheckInputs = [
    pytest
  ];

  pythonImportsCheck = [
    "swcgeom"
  ];

  meta = {
    description = "Neuron geometry library for swc format";
    homepage = "https://github.com/yzx9/swcgeom";
    changelog = "https://github.com/yzx9/swcgeom/blob/v${version}/CHANGELOG.md";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ yzx9 ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -16765,6 +16765,8 @@ self: super: with self; {
  swagger-ui-bundle = callPackage ../development/python-modules/swagger-ui-bundle { };
  swcgeom = callPackage ../development/python-modules/swcgeom { };
  swh-auth = callPackage ../development/python-modules/swh-auth { };
  swh-core = callPackage ../development/python-modules/swh-core { };