about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pluginbase
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/pluginbase')
-rw-r--r--nixpkgs/pkgs/development/python-modules/pluginbase/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/pluginbase/default.nix b/nixpkgs/pkgs/development/python-modules/pluginbase/default.nix
new file mode 100644
index 000000000000..cc330ac93f9b
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/pluginbase/default.nix
@@ -0,0 +1,31 @@
+{
+  lib,
+  fetchPypi,
+  buildPythonPackage,
+  pytest,
+}:
+
+buildPythonPackage rec {
+  version = "1.0.1";
+  format = "setuptools";
+  pname = "pluginbase";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "ff6c33a98fce232e9c73841d787a643de574937069f0d18147028d70d7dee287";
+  };
+
+  nativeCheckInputs = [ pytest ];
+
+  checkPhase = ''
+    cd tests
+    PYTHONPATH=.. pytest
+  '';
+
+  meta = with lib; {
+    homepage = "https://github.com/mitsuhiko/pluginbase";
+    description = "Support library for building plugins sytems in Python";
+    license = licenses.bsd3;
+    platforms = platforms.all;
+  };
+}