mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-11 18:27:17 +00:00
python3Packages.annotated-types: init at 0.5.0
This commit is contained in:
parent
274b267159
commit
495b199f8f
43
pkgs/development/python-modules/annotated-types/default.nix
Normal file
43
pkgs/development/python-modules/annotated-types/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -488,6 +488,8 @@ self: super: with self; {
|
|||||||
|
|
||||||
annexremote = callPackage ../development/python-modules/annexremote { };
|
annexremote = callPackage ../development/python-modules/annexremote { };
|
||||||
|
|
||||||
|
annotated-types = callPackage ../development/python-modules/annotated-types { };
|
||||||
|
|
||||||
annoy = callPackage ../development/python-modules/annoy { };
|
annoy = callPackage ../development/python-modules/annoy { };
|
||||||
|
|
||||||
anonip = callPackage ../development/python-modules/anonip { };
|
anonip = callPackage ../development/python-modules/anonip { };
|
||||||
|
Loading…
Reference in New Issue
Block a user