blob: f88d43362d58367b3738c0b7388eff5cf4e92a71 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "smbus2";
version = "0.4.3";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "kplindegaard";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-tjJurJzDn0ATiYY3Xo66lwUs98/7ZLG3d4+h1prVHAI=";
};
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "smbus2" ];
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 ];
};
}
|