summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pysingleton/default.nix
blob: 96461a73f82d1d3d9fac8a01a19466ce64eacae7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
  lib,
  buildPythonPackage,
  fetchPypi,
}:

buildPythonPackage rec {
  pname = "pysingleton";
  version = "0.2.1";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    sha256 = "5776e7a4ba0bab26709da604f4e648c5814385fef34010723db3da0d41b0dbcc";
  };

  pythonImportsCheck = [ "singleton" ];

  # No tests in the Pypi package.
  doCheck = false;

  meta = {
    description = "Provides a decorator to create thread-safe singleton classes";
    homepage = "https://github.com/timofurrer/pysingleton";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ kalbasit ];
  };
}