1{
2 lib,
3 buildPythonPackage,
4 setuptools,
5 fetchFromGitHub,
6 requests,
7 pytestCheckHook,
8 httmock,
9 pytest-mock,
10}:
11
12buildPythonPackage rec {
13 pname = "irisclient";
14 version = "1.2.0";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "houqp";
19 repo = "iris-python-client";
20 tag = "v${version}";
21 hash = "sha256-fXMw2BopkEqjklR6jr7QQIZyxLq6NHKm2rHwTCbtxR0=";
22 };
23
24 build-system = [ setuptools ];
25
26 dependencies = [ requests ];
27
28 checkInputs = [
29 httmock
30 pytestCheckHook
31 pytest-mock
32 ];
33
34 pythonImportsCheck = [ "irisclient" ];
35
36 meta = {
37 description = "Python client for Iris REST api";
38 changelog = "https://github.com/houqp/iris-python-client/blob/v${src.tag}/HISTORY.rst";
39 homepage = "https://github.com/houqp/iris-python-client";
40 license = lib.licenses.bsd2;
41 maintainers = with lib.maintainers; [ onny ];
42 };
43}