8e65f7f0cc
GitOrigin-RevId: 062a0c5437b68f950b081bbfc8a699d57a4ee026
38 lines
745 B
Nix
38 lines
745 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyobihai";
|
|
version = "1.3.2";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
# GitHub release, https://github.com/dshokouhi/pyobihai/issues/10
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-zhsnJyhXlugK0nJ7FJZZcrq2VDQt1a9uCgsJAIABZ28=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|