aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/pysingleton/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/pysingleton/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/pysingleton/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/pysingleton/default.nix b/nixpkgs/pkgs/development/python-modules/pysingleton/default.nix
new file mode 100644
index 00000000000..22e4ade4a88
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/pysingleton/default.nix
@@ -0,0 +1,26 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+}:
+
+buildPythonPackage rec {
+ pname = "pysingleton";
+ version = "0.2.1";
+
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "5776e7a4ba0bab26709da604f4e648c5814385fef34010723db3da0d41b0dbcc";
+ };
+
+ pythonImportsCheck = [ "singleton" ];
+
+ # No tests in the Pypi package.
+ doCheck = false;
+
+ meta = with lib; {
+ description = "Provides a decorator to create thread-safe singleton classes";
+ homepage = "https://github.com/timofurrer/pysingleton";
+ license = licenses.mit;
+ maintainers = with maintainers; [ kalbasit ];
+ };
+}