Unverified Commit b026686b authored by Arne Keller's avatar Arne Keller Committed by GitHub
Browse files

python313Packages.{typepy,tabledata,pytablewriter,dataproperty}: refactor, use...

python313Packages.{typepy,tabledata,pytablewriter,dataproperty}: refactor, use setuptools-scm (#380138)
parents f7b6b2c3 1b092ec7
Loading
Loading
Loading
Loading
+10 −7
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools-scm,
  loguru,
  mbstrdecoder,
  pytestCheckHook,
@@ -14,18 +15,20 @@
buildPythonPackage rec {
  pname = "dataproperty";
  version = "1.1.0";
  format = "setuptools";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "thombashi";
    repo = pname;
    repo = "dataproperty";
    tag = "v${version}";
    hash = "sha256-IEEwdOcC9nKwVumWnjpZlqYKCFGwZebMh7nGdGVjibE=";
  };

  propagatedBuildInputs = [
  build-system = [ setuptools-scm ];

  dependencies = [
    mbstrdecoder
    typepy
    tcolorpy
@@ -42,11 +45,11 @@ buildPythonPackage rec {

  pythonImportsCheck = [ "dataproperty" ];

  meta = with lib; {
  meta = {
    description = "Library for extracting properties from data";
    homepage = "https://github.com/thombashi/dataproperty";
    homepage = "https://github.com/thombashi/DataProperty";
    changelog = "https://github.com/thombashi/DataProperty/releases/tag/${src.tag}";
    license = licenses.mit;
    maintainers = with maintainers; [ genericnerdyusername ];
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ genericnerdyusername ];
  };
}
+8 −8
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@
  pytestCheckHook,
  pythonOlder,
  pyyaml,
  setuptools,
  setuptools-scm,
  simplejson,
  tabledata,
  tcolorpy,
@@ -25,20 +25,20 @@
buildPythonPackage rec {
  pname = "pytablewriter";
  version = "1.2.1";
  format = "pyproject";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "thombashi";
    repo = pname;
    repo = "pytablewriter";
    tag = "v${version}";
    hash = "sha256-YuuSMKTSG3oybvA6TDWNnGg4EiDAw2tRlM0S9mBQlkc=";
  };

  nativeBuildInputs = [ setuptools ];
  build-system = [ setuptools-scm ];

  propagatedBuildInputs = [
  dependencies = [
    dataproperty
    mbstrdecoder
    pathvalidate
@@ -103,11 +103,11 @@ buildPythonPackage rec {
    "test/writer/test_elasticsearch_writer.py"
  ];

  meta = with lib; {
  meta = {
    description = "Library to write a table in various formats";
    homepage = "https://github.com/thombashi/pytablewriter";
    changelog = "https://github.com/thombashi/pytablewriter/releases/tag/${src.tag}";
    license = licenses.mit;
    maintainers = with maintainers; [ genericnerdyusername ];
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ genericnerdyusername ];
  };
}
+9 −6
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  buildPythonPackage,
  fetchFromGitHub,
  lib,
  setuptools-scm,
  dataproperty,
  typepy,
  pytestCheckHook,
@@ -10,27 +11,29 @@
buildPythonPackage rec {
  pname = "tabledata";
  version = "1.3.4";
  format = "setuptools";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "thombashi";
    repo = pname;
    repo = "tabledata";
    tag = "v${version}";
    hash = "sha256-kZAEKUOcxb3fK3Oh6+4byJJlB/xzDAEGNpUDEKyVkhs=";
  };

  propagatedBuildInputs = [
  build-system = [ setuptools-scm ];

  dependencies = [
    dataproperty
    typepy
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  meta = with lib; {
  meta = {
    homepage = "https://github.com/thombashi/tabledata";
    description = "Library to represent tabular data";
    changelog = "https://github.com/thombashi/tabledata/releases/tag/${src.tag}";
    maintainers = with maintainers; [ genericnerdyusername ];
    license = licenses.mit;
    maintainers = with lib.maintainers; [ genericnerdyusername ];
    license = lib.licenses.mit;
  };
}
+9 −6
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools-scm,
  mbstrdecoder,
  python-dateutil,
  pytz,
@@ -14,18 +15,20 @@
buildPythonPackage rec {
  pname = "typepy";
  version = "1.3.4";
  format = "setuptools";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "thombashi";
    repo = pname;
    repo = "typepy";
    tag = "v${version}";
    hash = "sha256-lgwXoEtv2nBRKiWQH5bDrAIfikKN3cOqcHLEdnSAMpc=";
  };

  propagatedBuildInputs = [ mbstrdecoder ];
  build-system = [ setuptools-scm ];

  dependencies = [ mbstrdecoder ];

  optional-dependencies = {
    datetime = [
@@ -42,11 +45,11 @@ buildPythonPackage rec {

  pythonImportsCheck = [ "typepy" ];

  meta = with lib; {
  meta = {
    description = "Library for variable type checker/validator/converter at a run time";
    homepage = "https://github.com/thombashi/typepy";
    changelog = "https://github.com/thombashi/typepy/releases/tag/${src.tag}";
    license = licenses.mit;
    maintainers = with maintainers; [ genericnerdyusername ];
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ genericnerdyusername ];
  };
}