From 9895036cfc18dbd18ddcb04d7d6c373fd56576e1 Mon Sep 17 00:00:00 2001 From: Different Date: Mon, 23 Jun 2025 06:13:20 +1000 Subject: [PATCH] python3Packages.useful-types: init at 0.2.1 useful-types is a Python library for composing runtime type checks. Changelog: https://github.com/hauntsaninja/useful_types/blob/v0.2.1/CHANGELOG.md --- .../python-modules/useful-types/default.nix | 36 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/development/python-modules/useful-types/default.nix diff --git a/pkgs/development/python-modules/useful-types/default.nix b/pkgs/development/python-modules/useful-types/default.nix new file mode 100644 index 000000000000..32434c202563 --- /dev/null +++ b/pkgs/development/python-modules/useful-types/default.nix @@ -0,0 +1,36 @@ +{ + lib, + buildPythonPackage, + fetchPypi, + flit-core, + typing-extensions, +}: +buildPythonPackage rec { + pname = "useful-types"; + version = "0.2.1"; + format = "pyproject"; + + src = fetchPypi { + inherit version; + pname = "useful_types"; + hash = "sha256-hwoLzI/LfQsvFAVUOMHKt+JI/e2UKwlDpNcBnn+72s0="; + }; + + build-system = [ + flit-core + ]; + + dependencies = [ + typing-extensions + ]; + + pythonImportsCheck = [ "useful_types" ]; + + meta = { + description = "Useful types for Python"; + homepage = "https://github.com/hauntsaninja/useful_types"; + changelog = "https://github.com/hauntsaninja/useful_types/blob/v${version}/CHANGELOG.md"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ different-name ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 954c54da7583..eb33d98c2de3 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -18902,6 +18902,8 @@ self: super: with self; { usbtmc = callPackage ../development/python-modules/usbtmc { }; + useful-types = callPackage ../development/python-modules/useful-types { }; + user-agents = callPackage ../development/python-modules/user-agents { }; userpath = callPackage ../development/python-modules/userpath { };