writers: add writeGuile[Bin] (#364531)
[NixPkgs.git] / pkgs / development / python-modules / pi1wire / default.nix
blobca57c6fd8b355c59cbc02881417ffac9c87d006e
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pytestCheckHook,
6 }:
8 buildPythonPackage rec {
9   pname = "pi1wire";
10   version = "0.3.0";
12   format = "setuptools";
14   src = fetchFromGitHub {
15     owner = "ushiboy";
16     repo = "pi1wire";
17     rev = "refs/tags/v${version}";
18     hash = "sha256-l/5w71QsAW4BvILOaLdUVvQ8xxUm1ZTzUESRFzUgtic=";
19   };
21   nativeCheckInputs = [ pytestCheckHook ];
23   disabledTests = [
24     "test_find_all_sensors" # flaky
25   ];
27   pythonImportsCheck = [ "pi1wire" ];
29   meta = with lib; {
30     description = "1Wire Sensor Library for Raspberry PI";
31     homepage = "https://github.com/ushiboy/pi1wire";
32     license = licenses.mit;
33     maintainers = with maintainers; [ dotlambda ];
34   };