Commit 5e24dfe3 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python311Packages.referencing: init at 0.29.0

parent c58d7882
Loading
Loading
Loading
Loading
+64 −0
Original line number Diff line number Diff line
{ lib
, attrs
, buildPythonPackage
, fetchFromGitHub
, hatch-vcs
, hatchling
, jsonschema
, pytest-subtests
, pytestCheckHook
, pythonOlder
, rpds-py
, setuptools-scm
}:

buildPythonPackage rec {
  pname = "referencing";
  version = "0.29.0";
  format = "pyproject";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "python-jsonschema";
    repo = "referencing";
    rev = "refs/tags/v${version}";
    fetchSubmodules = true;
    hash = "sha256-+wPNPYu2/0gBmHFJ8aAeZ3dFDC7uFV6Ww3RAbri26Mc=";
  };

  SETUPTOOLS_SCM_PRETEND_VERSION = version;

  postPatch = ''
    sed -i "/Topic/d" pyproject.toml
  '';

  nativeBuildInputs = [
    hatch-vcs
    hatchling
    setuptools-scm
  ];

  propagatedBuildInputs = [
    attrs
    rpds-py
  ];

  nativeCheckInputs = [
    jsonschema
    pytest-subtests
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "referencing"
  ];

  meta = with lib; {
    description = "Cross-specification JSON referencing";
    homepage = "https://github.com/python-jsonschema/referencing";
    changelog = "https://github.com/python-jsonschema/referencing/blob/${version}/CHANGELOG.rst";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -10619,6 +10619,8 @@ self: super: with self; {

  reedsolo = callPackage ../development/python-modules/reedsolo { };

  referencing = callPackage ../development/python-modules/referencing { };

  reflink = callPackage ../development/python-modules/reflink { };

  regenmaschine = callPackage ../development/python-modules/regenmaschine { };