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