Unverified Commit 243c587a authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

[Backport release-25.05] python313Packages.entry-points-txt: refactor (#408169)

parents 35b528a9 cba9b14a
Loading
Loading
Loading
Loading
+9 −10
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pythonOlder,
  pytestCheckHook,
  pytest-cov-stub,
  pythonOlder,
  setuptools,
  hatchling,
  fetchFromGitHub,
  buildPythonPackage,
}:

buildPythonPackage rec {
  pname = "entry-points-txt";
  version = "0.2.1";
  format = "pyproject";

  disabled = pythonOlder "3.6";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "jwodder";
    repo = pname;
    repo = "entry-points-txt";
    tag = "v${version}";
    hash = "sha256-hIUXxBJ0XSB4FrNZJdofJ1gTTncILNq9Xh+iAV1CD0s=";
  };

  nativeBuildInputs = [ setuptools ];
  nativeBuildInputs = [ hatchling ];

  nativeCheckInputs = [
    pytestCheckHook
@@ -34,7 +32,8 @@ buildPythonPackage rec {
  meta = with lib; {
    description = "Read & write entry_points.txt files";
    homepage = "https://github.com/jwodder/entry-points-txt";
    license = with licenses; [ mit ];
    changelog = "https://github.com/wheelodex/entry-points-txt/releases/tag/${src.tag}";
    license = licenses.mit;
    maintainers = with maintainers; [ ayazhafiz ];
  };
}
+8 −9
Original line number Diff line number Diff line
@@ -2,18 +2,18 @@
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  hatchling,
  pytest-cov-stub,
  pytestCheckHook,
  pythonOlder,
  hatchling,
}:

buildPythonPackage rec {
  pname = "wheel-filename";
  version = "1.4.2";
  format = "pyproject";
  pyproject = true;

  disabled = pythonOlder "3.6";
  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "jwodder";
@@ -22,9 +22,7 @@ buildPythonPackage rec {
    hash = "sha256-KAuUrrSq6HJAy+5Gj6svI4M6oV6Fsle1A79E2q2FKW8=";
  };

  nativeBuildInputs = [
    hatchling
  ];
  build-system = [ hatchling ];

  nativeCheckInputs = [
    pytestCheckHook
@@ -35,9 +33,10 @@ buildPythonPackage rec {

  meta = with lib; {
    description = "Parse wheel filenames";
    mainProgram = "wheel-filename";
    homepage = "https://github.com/jwodder/wheel-filename";
    license = with licenses; [ mit ];
    changelog = "https://github.com/wheelodex/wheel-filename/releases/tag/${src.tag}";
    license = licenses.mit;
    maintainers = with lib.maintainers; [ ayazhafiz ];
    mainProgram = "wheel-filename";
  };
}
+7 −12
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ buildPythonPackage rec {
  version = "1.7.2";
  pyproject = true;

  disabled = pythonOlder "3.6";
  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "jwodder";
@@ -35,11 +35,9 @@ buildPythonPackage rec {
    "headerparser"
  ];

  nativeBuildInputs = [
    hatchling
  ];
  build-system = [ hatchling ];

  propagatedBuildInputs = [
  dependencies = [
    attrs
    entry-points-txt
    headerparser
@@ -49,12 +47,9 @@ buildPythonPackage rec {
  ];

  nativeCheckInputs = [
    setuptools
    pytestCheckHook
    pytest-cov-stub
  ];

  checkInputs = [
    setuptools
    jsonschema
  ];

@@ -67,10 +62,10 @@ buildPythonPackage rec {

  meta = with lib; {
    description = "Extract information from wheels";
    mainProgram = "wheel2json";
    homepage = "https://github.com/jwodder/wheel-inspect";
    changelog = "https://github.com/wheelodex/wheel-inspect/releases/tag/v${version}";
    license = with licenses; [ mit ];
    changelog = "https://github.com/wheelodex/wheel-inspect/releases/tag/${src.tag}";
    license = licenses.mit;
    maintainers = with maintainers; [ ayazhafiz ];
    mainProgram = "wheel2json";
  };
}