Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pi1wire / default.nix
blob6d3debdcaa2fbe5e0a5e1da3814b4150c76be50b
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytestCheckHook
5 }:
7 buildPythonPackage rec {
8   pname = "pi1wire";
9   version = "0.3.0";
11   format = "setuptools";
13   src = fetchFromGitHub {
14     owner = "ushiboy";
15     repo = "pi1wire";
16     rev = "refs/tags/v${version}";
17     hash = "sha256-l/5w71QsAW4BvILOaLdUVvQ8xxUm1ZTzUESRFzUgtic=";
18   };
20   nativeCheckInputs = [
21     pytestCheckHook
22   ];
24   disabledTests = [
25     "test_find_all_sensors" # flaky
26   ];
28   pythonImportsCheck = [ "pi1wire" ];
30   meta = with lib; {
31     description = "1Wire Sensor Library for Raspberry PI";
32     homepage = "https://github.com/ushiboy/pi1wire";
33     license = licenses.mit;
34     maintainers = with maintainers; [ dotlambda ];
35   };