1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "class-registry"; 10 version = "3.0.5"; 11 disabled = pythonOlder "3.5"; 12 13 src = fetchFromGitHub { 14 owner = "todofixthis"; 15 repo = pname; 16 rev = version; 17 sha256 = "0gpvq4a6qrr2iki6b4vxarjr1jrsw560m2qzm5bb43ix8c8b7y3q"; 18 }; 19 20 checkInputs = [ 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}