1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 pytestCheckHook, 7}: 8 9buildPythonPackage rec { 10 pname = "class-registry"; 11 version = "5.1.1"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "todofixthis"; 16 repo = "class-registry"; 17 tag = version; 18 hash = "sha256-MI63b77ydmhQSbtKovla7BCEUjLF43DW80VABjAVEI0="; 19 }; 20 21 build-system = [ poetry-core ]; 22 23 nativeCheckInputs = [ pytestCheckHook ]; 24 25 pythonImportsCheck = [ "class_registry" ]; 26 27 meta = with lib; { 28 description = "Factory and registry pattern for Python classes"; 29 homepage = "https://class-registry.readthedocs.io/en/latest/"; 30 license = licenses.mit; 31 maintainers = with maintainers; [ 32 hrdinka 33 ]; 34 }; 35}