git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.pysmart-smartx: init at 0.3.10
commitff795a714b5488c18d0bb73ad9ab8ef3b6328472 authorRyan Horiguchi <ryan.horiguchi@gmail.com> dateFri 16 Apr 2021, 12:57 (6 years ago) parentf4c9dc0
2 files changed+38
pkgs/development/python-modules/pysmart-smartx/default.nix+36 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/pysmart-smartx/default.nixnew file+36
@@ -0,0 +1,36 @@
1+{ lib
2+, buildPythonPackage
3+, fetchFromGitHub
4+, isPy3k
5+, future
6+, pytestCheckHook
7+, mock
8+}:
9+
10+buildPythonPackage rec {
11+ pname = "pysmart-smartx";
12+ version = "0.3.10";
13+
14+ src = fetchFromGitHub {
15+ owner = "smartxworks";
16+ repo = "pySMART";
17+ rev = "v${version}";
18+ sha256 = "1irl4nlgz3ds3aikraa9928gzn6hz8chfh7jnpmq2q7d2vqbdrjs";
19+ };
20+
21+ propagatedBuildInputs = [ future ];
22+
23+ # tests require contextlib.nested
24+ doCheck = !isPy3k;
25+
26+ checkInputs = [ pytestCheckHook mock ];
27+
28+ pythonImportsCheck = [ "pySMART" ];
29+
30+ meta = with lib; {
31+ description = "It's a fork of pySMART with lots of bug fix and enhances";
32+ homepage = "https://github.com/smartxworks/pySMART";
33+ maintainers = with maintainers; [ rhoriguchi ];
34+ license = licenses.gpl2Only;
35+ };
36+}
pkgs/top-level/python-packages.nix+2
@@ -6357,6 +6357,8 @@ in {
63576357
63586358 pysmb = callPackage ../development/python-modules/pysmb { };
63596359
6360+ pysmart-smartx = callPackage ../development/python-modules/pysmart-smartx { };
6361+
63606362 pysmbc = callPackage ../development/python-modules/pysmbc { };
63616363
63626364 pysmf = callPackage ../development/python-modules/pysmf { };