1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "class-registry";
10 version = "4.0.6";
11 disabled = pythonOlder "3.5";
12
13 src = fetchFromGitHub {
14 owner = "todofixthis";
15 repo = pname;
16 rev = "refs/tags/${version}";
17 hash = "sha256-kSEHgzBgnAq5rMv2HbmGl+9CUzsmzUzPQWr+5q8mcsA=";
18 };
19
20 nativeCheckInputs = [
21 pytestCheckHook
22 ];
23
24 pythonImportsCheck = [
25 "class_registry"
26 ];
27
28 meta = with lib; {
29 description = "Factory and registry pattern for Python classes";
30 homepage = "https://class-registry.readthedocs.io/en/latest/";
31 license = licenses.mit;
32 maintainers = with maintainers; [ kevincox SuperSandro2000 ];
33 };
34}