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