diff options
Diffstat (limited to 'pkgs/development/python-modules/pi1wire/default.nix')
-rw-r--r-- | pkgs/development/python-modules/pi1wire/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pi1wire/default.nix b/pkgs/development/python-modules/pi1wire/default.nix new file mode 100644 index 0000000000000..993c715999b2f --- /dev/null +++ b/pkgs/development/python-modules/pi1wire/default.nix @@ -0,0 +1,36 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "pi1wire"; + version = "0.2.0"; + + format = "setuptools"; + + src = fetchFromGitHub { + owner = "ushiboy"; + repo = "pi1wire"; + rev = "v${version}"; + hash = "sha256-70w71heHWR5yArl+HuNAlzL2Yq/CL0iMNMiQw5qovls="; + }; + + checkInputs = [ + pytestCheckHook + ]; + + disabledTests = [ + "test_find_all_sensors" # flaky + ]; + + pythonImportsCheck = [ "pi1wire" ]; + + meta = with lib; { + description = "1Wire Sensor Library for Raspberry PI"; + homepage = "https://github.com/ushiboy/pi1wire"; + license = licenses.mit; + maintainers = with maintainers; [ dotlambda ]; + }; +} |