Merge pull request #242542 from blaggacao/init-python-annotated-types

This commit is contained in:
Sandro
2023-07-11 13:44:52 +02:00
committed by GitHub
2 changed files with 45 additions and 0 deletions
@@ -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 ];
};
}
+2
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 { };