blob: e9d2fb8b869676657a5e0decc4913924ed171e56 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
, hatchling
}:
buildPythonPackage rec {
pname = "magic-filter";
version = "1.0.12";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "aiogram";
repo = "magic-filter";
rev = "refs/tags/v${version}";
hash = "sha256-MSYIZ/bzngRu6mG3EGblUotSCA+6bi+l3EymFA8NRZA=";
};
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 ];
};
}
|