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