depot/third_party/nixpkgs/pkgs/development/python-modules/pyobihai/default.nix

35 lines
716 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "pyobihai";
version = "1.3.1";
disabled = pythonOlder "3.6";
# GitHub release, https://github.com/dshokouhi/pyobihai/issues/10
src = fetchPypi {
inherit pname version;
sha256 = "1vvf5if57dfd091a7fb5rvx63hvf0isrx28j72nj2aav1as460qp";
};
propagatedBuildInputs = [
requests
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "pyobihai" ];
meta = with lib; {
description = "Python package to interact with Obihai devices";
homepage = "https://github.com/dshokouhi/pyobihai";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}