nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 defusedxml,
5 fetchFromGitHub,
6 pytestCheckHook,
7 requests,
8}:
9
10buildPythonPackage rec {
11 pname = "pyobihai";
12 version = "1.4.2";
13 format = "setuptools";
14
15 src = fetchFromGitHub {
16 owner = "ejpenney";
17 repo = "pyobihai";
18 tag = version;
19 hash = "sha256-tDPu/ceH7+7AnxokADDfl+G56B0+ri8RxXxXEyWa61Q=";
20 };
21
22 propagatedBuildInputs = [
23 defusedxml
24 requests
25 ];
26
27 nativeCheckInputs = [ pytestCheckHook ];
28
29 pythonImportsCheck = [ "pyobihai" ];
30
31 meta = {
32 description = "Module to interact with Obihai devices";
33 homepage = "https://github.com/ejpenney/pyobihai";
34 changelog = "https://github.com/ejpenney/pyobihai/releases/tag/${version}";
35 license = lib.licenses.mit;
36 maintainers = with lib.maintainers; [ fab ];
37 };
38}