python3Packages.pysmart: init at 1.1.0 (#142203)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>main
parent
cc5cc3101c
commit
2b6b25e606
@ -1,36 +0,0 @@ |
||||
{ 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; |
||||
}; |
||||
} |
@ -0,0 +1,37 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, fetchFromGitHub |
||||
, smartmontools |
||||
, humanfriendly |
||||
, pytestCheckHook |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "pysmart"; |
||||
version = "1.1.0"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "truenas"; |
||||
repo = "py-SMART"; |
||||
rev = "v${version}"; |
||||
sha256 = "sha256-e46ALiYg0Db/gOzqLmVc1vi9ObhfxzqwfQk9/9pz+r0="; |
||||
}; |
||||
|
||||
postPatch = '' |
||||
substituteInPlace pySMART/utils.py \ |
||||
--replace "which('smartctl')" '"${smartmontools}/bin/smartctl"' |
||||
''; |
||||
|
||||
propagatedBuildInputs = [ humanfriendly ]; |
||||
|
||||
checkInputs = [ pytestCheckHook ]; |
||||
|
||||
pythonImportsCheck = [ "pySMART" ]; |
||||
|
||||
meta = with lib; { |
||||
description = "Wrapper for smartctl (smartmontools)"; |
||||
homepage = "https://github.com/truenas/py-SMART"; |
||||
maintainers = with maintainers; [ nyanloutre ]; |
||||
license = licenses.lgpl21Only; |
||||
}; |
||||
} |
Loading…
Reference in new issue