Unverified Commit 81833fda authored by Doron Behar's avatar Doron Behar Committed by GitHub
Browse files

python312Packages.svgdigitizer: init at 0.12.6 (#423464)

parents f5171509 42cbb4f6
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -4,19 +4,19 @@
  fetchPypi,
}:

let
python3.pkgs.buildPythonApplication rec {
  pname = "pybibget";
  version = "0.1.0";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-M6CIctTOVn7kIPmsoHQmYl2wQaUzfel7ryw/3ebQitg=";
  };

in
python3.pkgs.buildPythonApplication {
  inherit pname version src;
  pyproject = true;
  build-system = [
    python3.pkgs.setuptools
  ];

  propagatedBuildInputs = with python3.pkgs; [
    lxml
+27 −13
Original line number Diff line number Diff line
@@ -2,33 +2,47 @@
  lib,
  buildPythonPackage,
  fetchPypi,

  # build-system
  setuptools,

  # dependencies
  latexcodec,
  pyyaml,
  setuptools,

  # tests
  pytestCheckHook,
}:

buildPythonPackage rec {
  version = "0.24.0";
  format = "setuptools";
  pname = "pybtex";
  version = "0.25.1";
  pyproject = true;

  doCheck = false;
  pythonImportsCheck = [ "pybtex" ];
  src = fetchPypi {
    inherit version pname;
    sha256 = "sha256-nq+QJnx+g+Ilr4n+plw3Cvv2X0WCINOUap4wSeHspJE=";
  };

  propagatedBuildInputs = [
  build-system = [
    setuptools
  ];

  dependencies = [
    latexcodec
    pyyaml
    setuptools
  ];

  src = fetchPypi {
    inherit version pname;
    sha256 = "818eae35b61733e5c007c3fcd2cfb75ed1bc8b4173c1f70b56cc4c0802d34755";
  };
  pythonImportsCheck = [ "pybtex" ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  meta = with lib; {
  meta = {
    homepage = "https://pybtex.org/";
    changelog = "https://bitbucket.org/pybtex-devs/pybtex/src/master/CHANGES";
    description = "BibTeX-compatible bibliography processor written in Python";
    license = licenses.mit;
    license = lib.licenses.mit;
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -171,6 +171,7 @@ buildPythonPackage rec {

      # attempt to insert nil object from objects[1]
      "test_timer_10_2_7"
      "test_timer"
    ];

  disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [
+2 −2
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@

buildPythonPackage rec {
  pname = "sphinxcontrib-bibtex";
  version = "2.6.3";
  version = "2.6.5";
  pyproject = true;

  disabled = pythonOlder "3.7";
@@ -25,7 +25,7 @@ buildPythonPackage rec {
    owner = "mcmtroffaes";
    repo = "sphinxcontrib-bibtex";
    tag = version;
    hash = "sha256-cqz5Jamtlflo5rFhWPCPlYoymApUtXPG4oTRjfDI+WY=";
    hash = "sha256-sT23DkIfJcb3cFBFdL31RRzlDoJRcCUYIdpUVuYjGuo=";
  };

  build-system = [ setuptools ];
+84 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  stdenv,

  # build-system
  setuptools,

  # dependencies
  astropy,
  click,
  frictionless,
  matplotlib,
  mergedeep,
  pandas,
  pillow,
  pybtex,
  pymupdf,
  pyyaml,
  scipy,
  svg-path,
  svgpathtools,
  svgwrite,

  # tests
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "svgdigitizer";
  version = "0.12.6";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "echemdb";
    repo = "svgdigitizer";
    tag = version;
    hash = "sha256-aodPjms92+/6bbheIs/8w+M4T+mfw5PWf1dsxFuojwA=";
  };

  build-system = [
    setuptools
  ];

  dependencies = [
    astropy
    click
    frictionless
    matplotlib
    mergedeep
    pandas
    pillow
    pybtex
    pymupdf
    pyyaml
    scipy
    svg-path
    svgpathtools
    svgwrite
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];
  pytestFlags = [
    "--doctest-modules"
    "svgdigitizer"
  ];

  pythonImportsCheck = [
    "svgdigitizer"
  ];

  meta = {
    description = "(x,y) Data Points from SVG files";
    homepage = "https://github.com/echemdb/svgdigitizer";
    changelog = "https://github.com/echemdb/svgdigitizer/blob/${src.rev}/ChangeLog";
    license = lib.licenses.gpl3Only;
    maintainers = with lib.maintainers; [ doronbehar ];
    # https://github.com/echemdb/svgdigitizer/issues/252
    broken = stdenv.hostPlatform.isDarwin;
  };
}
Loading