about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRyan Horiguchi <ryan.horiguchi@gmail.com>2021-04-16 12:57:19 +0200
committerRyan Horiguchi <ryan.horiguchi@gmail.com>2021-04-22 12:41:35 +0200
commitff795a714b5488c18d0bb73ad9ab8ef3b6328472 (patch)
tree15b6d77b3ca4a0fa1a839bb442092e81621136f5
parentf4c9dc066f8b32042d7813e8bdb6d9cef7e6b8d0 (diff)
downloadnixlib-ff795a714b5488c18d0bb73ad9ab8ef3b6328472.tar
nixlib-ff795a714b5488c18d0bb73ad9ab8ef3b6328472.tar.gz
nixlib-ff795a714b5488c18d0bb73ad9ab8ef3b6328472.tar.bz2
nixlib-ff795a714b5488c18d0bb73ad9ab8ef3b6328472.tar.lz
nixlib-ff795a714b5488c18d0bb73ad9ab8ef3b6328472.tar.xz
nixlib-ff795a714b5488c18d0bb73ad9ab8ef3b6328472.tar.zst
nixlib-ff795a714b5488c18d0bb73ad9ab8ef3b6328472.zip
python3Packages.pysmart-smartx: init at 0.3.10
-rw-r--r--pkgs/development/python-modules/pysmart-smartx/default.nix36
-rw-r--r--pkgs/top-level/python-packages.nix2
2 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pysmart-smartx/default.nix b/pkgs/development/python-modules/pysmart-smartx/default.nix
new file mode 100644
index 000000000000..66b789668a01
--- /dev/null
+++ b/pkgs/development/python-modules/pysmart-smartx/default.nix
@@ -0,0 +1,36 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, isPy3k
+, future
+, pytestCheckHook
+, mock
+}:
+
+buildPythonPackage rec {
+  pname = "pysmart-smartx";
+  version = "0.3.10";
+
+  src = fetchFromGitHub {
+    owner = "smartxworks";
+    repo = "pySMART";
+    rev = "v${version}";
+    sha256 = "1irl4nlgz3ds3aikraa9928gzn6hz8chfh7jnpmq2q7d2vqbdrjs";
+  };
+
+  propagatedBuildInputs = [ future ];
+
+  # tests require contextlib.nested
+  doCheck = !isPy3k;
+
+  checkInputs = [ pytestCheckHook mock ];
+
+  pythonImportsCheck = [ "pySMART" ];
+
+  meta = with lib; {
+    description = "It's a fork of pySMART with lots of bug fix and enhances";
+    homepage = "https://github.com/smartxworks/pySMART";
+    maintainers = with maintainers; [ rhoriguchi ];
+    license = licenses.gpl2Only;
+  };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 599fdc92edab..855d63081cd6 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -6357,6 +6357,8 @@ in {
 
   pysmb = callPackage ../development/python-modules/pysmb { };
 
+  pysmart-smartx = callPackage ../development/python-modules/pysmart-smartx { };
+
   pysmbc = callPackage ../development/python-modules/pysmbc { };
 
   pysmf = callPackage ../development/python-modules/pysmf { };