nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytest-asyncio,
6 pytestCheckHook,
7 pyyaml,
8}:
9
10buildPythonPackage rec {
11 pname = "siobrultech-protocols";
12 version = "0.14.0";
13
14 format = "setuptools";
15
16 src = fetchFromGitHub {
17 owner = "sdwilsh";
18 repo = "siobrultech-protocols";
19 tag = "v${version}";
20 hash = "sha256-8tls2wlLA3wQ78gK4JvvhSWZS5oHRzzsKE73M4i1eyg=";
21 };
22
23 nativeCheckInputs = [
24 pytest-asyncio
25 pytestCheckHook
26 pyyaml
27 ];
28
29 pythonImportsCheck = [
30 "siobrultech_protocols.gem.api"
31 "siobrultech_protocols.gem.protocol"
32 ];
33
34 meta = {
35 description = "Sans-I/O Python client library for Brultech Devices";
36 homepage = "https://github.com/sdwilsh/siobrultech-protocols";
37 changelog = "https://github.com/sdwilsh/siobrultech-protocols/releases/tag/v${version}";
38 license = lib.licenses.mit;
39 maintainers = with lib.maintainers; [ dotlambda ];
40 };
41}