Merge pull request #205085 from r-ryantm/auto-update/python3.10-pysmart

python310Packages.pysmart: 1.1.0 -> 1.2.1
This commit is contained in:
Fabian Affolter 2022-12-09 11:19:42 +01:00 committed by GitHub
commit 6f246095c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,17 +4,21 @@
, smartmontools
, humanfriendly
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pysmart";
version = "1.1.0";
version = "1.2.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "truenas";
repo = "py-SMART";
rev = "v${version}";
sha256 = "sha256-e46ALiYg0Db/gOzqLmVc1vi9ObhfxzqwfQk9/9pz+r0=";
rev = "refs/tags/v${version}";
hash = "sha256-slLk4zoW0ht9hiOxyBt0caekjrPgih9G99pRiD2vIxE=";
};
postPatch = ''
@ -22,16 +26,23 @@ buildPythonPackage rec {
--replace "which('smartctl')" '"${smartmontools}/bin/smartctl"'
'';
propagatedBuildInputs = [ humanfriendly ];
propagatedBuildInputs = [
humanfriendly
];
checkInputs = [ pytestCheckHook ];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "pySMART" ];
pythonImportsCheck = [
"pySMART"
];
meta = with lib; {
description = "Wrapper for smartctl (smartmontools)";
homepage = "https://github.com/truenas/py-SMART";
maintainers = with maintainers; [ nyanloutre ];
changelog = "https://github.com/truenas/py-SMART/blob/v${version}/CHANGELOG.md";
license = licenses.lgpl21Only;
maintainers = with maintainers; [ nyanloutre ];
};
}