1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5}: 6 7buildPythonPackage rec { 8 pname = "pysingleton"; 9 version = "0.2.1"; 10 format = "setuptools"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "5776e7a4ba0bab26709da604f4e648c5814385fef34010723db3da0d41b0dbcc"; 15 }; 16 17 pythonImportsCheck = [ "singleton" ]; 18 19 # No tests in the Pypi package. 20 doCheck = false; 21 22 meta = with lib; { 23 description = "Provides a decorator to create thread-safe singleton classes"; 24 homepage = "https://github.com/timofurrer/pysingleton"; 25 license = licenses.mit; 26 maintainers = with maintainers; [ kalbasit ]; 27 }; 28}