ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / smbus2 / default.nix
blob262e765ad0dacf7e419504ba1673e3e83c6d7082
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , nose
5 , pythonOlder
6 }:
8 buildPythonPackage rec {
9   pname = "smbus2";
10   version = "0.4.2";
12   disabled = pythonOlder "3.6";
14   src = fetchFromGitHub {
15     owner = "kplindegaard";
16     repo = pname;
17     rev = "refs/tags/${version}";
18     sha256 = "sha256-6JzFbhUq8XR1nYkadPeYqItcLZDIFAwTe3BriEW2nVI=";
19   };
21   checkInputs = [
22     nose
23   ];
25   checkPhase = ''
26     runHook preCheck
27     nosetests
28     runHook postCheck
29   '';
31   pythonImportsCheck = [
32     "smbus2"
33   ];
35   meta = with lib; {
36     description = "Drop-in replacement for smbus-cffi/smbus-python";
37     homepage = "https://smbus2.readthedocs.io/";
38     license = licenses.mit;
39     maintainers = with maintainers; [ fab ];
40   };