mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
39 lines
745 B
Nix
39 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 ];
|
|
};
|
|
}
|