Unverified Commit 79bee85b authored by OTABI Tomoya's avatar OTABI Tomoya Committed by GitHub
Browse files

Merge pull request #298613 from ViZiD/hashberg-io/typing-validation

python312Packages.typing-validation: init at 1.2.11
parents e1cd8374 11d1c33c
Loading
Loading
Loading
Loading
+58 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub

, pytestCheckHook

, pythonOlder

, setuptools
, setuptools-scm
, wheel

, numpy

, typing-extensions
}:

buildPythonPackage rec {
  pname = "typing-validation";
  version = "1.2.11";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "hashberg-io";
    repo = "typing-validation";
    rev = "refs/tags/v${version}";
    hash = "sha256-0scXoAPkx/VBIbNRMtFoRRbmGpC2RzNRmQG4mRXSxrs=";
  };

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

  dependencies = [
    typing-extensions
  ];

  nativeCheckInputs = [
    pytestCheckHook
    numpy
  ];

  pythonImportsCheck = [
    "typing_validation"
  ];

  meta = with lib; {
    description = "A simple library for runtime type-checking";
    homepage = "https://github.com/hashberg-io/typing-validation";
    changelog = "https://github.com/hashberg-io/typing-validation/releases/tag/v${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ vizid ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -16032,6 +16032,8 @@ self: super: with self; {
  typing-inspect = callPackage ../development/python-modules/typing-inspect { };
  typing-validation = callPackage ../development/python-modules/typing-validation { };
  typish = callPackage ../development/python-modules/typish { };
  typogrify = callPackage ../development/python-modules/typogrify { };