python3Packages.annotated-types: init at 0.5.0

This commit is contained in:
David Arnold 2023-07-09 17:44:54 -05:00
parent 274b267159
commit 495b199f8f
No known key found for this signature in database
GPG Key ID: 0318D822BAC965CC
2 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,43 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, hatchling
, typing-extensions
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "annotated-types";
version = "0.5.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "annotated-types";
repo = "annotated-types";
rev = "v${version}";
hash = "sha256-zCsWfJ8BQuov8FN+hlm9XBKWAAQ/KHPK/x024A8k2kE=";
};
nativeBuildInputs = [
hatchling
];
propagatedBuildInputs = lib.optionals (pythonOlder "3.9") [
typing-extensions
];
pythonImportsCheck = [ "annotated_types" ];
nativeCheckInputs = [
pytestCheckHook
];
meta = with lib; {
description = "Reusable constraint types to use with typing.Annotated";
homepage = "https://github.com/annotated-types/annotated-types";
changelog = "https://github.com/annotated-types/annotated-types/releases/tag/${src.rev}";
license = licenses.mit;
maintainers = with maintainers; [ blaggacao ];
};
}

View File

@ -488,6 +488,8 @@ self: super: with self; {
annexremote = callPackage ../development/python-modules/annexremote { };
annotated-types = callPackage ../development/python-modules/annotated-types { };
annoy = callPackage ../development/python-modules/annoy { };
anonip = callPackage ../development/python-modules/anonip { };