python3Packages.magic-filter: init at 1.0.10

This commit is contained in:
Nikolay Korotkiy 2023-07-19 02:15:38 +04:00
parent 3cfc4db1e0
commit 029a3f4398
No known key found for this signature in database
GPG key ID: D1DE6D7F693663A5
2 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,40 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
, hatchling
}:
buildPythonPackage rec {
pname = "magic-filter";
version = "1.0.10";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "aiogram";
repo = "magic-filter";
rev = "v${version}";
hash = "sha256-mHqq/ci8uMACNutwmxKX1nrl3nTSnSyU2x1VxzWxqzM=";
};
nativeBuildInputs = [
hatchling
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "magic_filter" ];
meta = with lib; {
description = "Magic filter based on dynamic attribute getter";
homepage = "https://github.com/aiogram/magic-filter";
changelog = "https://github.com/aiogram/magic-filter/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ sikmir ];
};
}

View file

@ -6149,6 +6149,8 @@ self: super: with self; {
magicgui = callPackage ../development/python-modules/magicgui { };
magic-filter = callPackage ../development/python-modules/magic-filter { };
magic-wormhole = callPackage ../development/python-modules/magic-wormhole { };
magic-wormhole-mailbox-server = callPackage ../development/python-modules/magic-wormhole-mailbox-server { };