Merge pull request #251541 from fabaff/smbus2-bump
python311Packages.smbus2: 0.4.2 -> 0.4.3
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, nose
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "smbus2";
|
||||
version = "0.4.2";
|
||||
version = "0.4.3";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
@@ -15,19 +16,13 @@ buildPythonPackage rec {
|
||||
owner = "kplindegaard";
|
||||
repo = pname;
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-6JzFbhUq8XR1nYkadPeYqItcLZDIFAwTe3BriEW2nVI=";
|
||||
hash = "sha256-tjJurJzDn0ATiYY3Xo66lwUs98/7ZLG3d4+h1prVHAI=";
|
||||
};
|
||||
|
||||
nativeCheckInputs = [
|
||||
nose
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
nosetests
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"smbus2"
|
||||
];
|
||||
@@ -35,6 +30,7 @@ buildPythonPackage rec {
|
||||
meta = with lib; {
|
||||
description = "Drop-in replacement for smbus-cffi/smbus-python";
|
||||
homepage = "https://smbus2.readthedocs.io/";
|
||||
changelog = "https://github.com/kplindegaard/smbus2/blob/${version}/CHANGELOG.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user