1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 pytestCheckHook,
7 pythonOlder,
8 requests,
9 httmock,
10}:
11
12buildPythonPackage rec {
13 pname = "freesms";
14 version = "0.3.0";
15 pyproject = true;
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchFromGitHub {
20 owner = "bfontaine";
21 repo = "freesms";
22 tag = "v${version}";
23 hash = "sha256-5f5amXH6VVppX9/9DhILdBU8w/6n67EUgBy/zgTEUCM=";
24 };
25
26 build-system = [ poetry-core ];
27
28 dependencies = [ requests ];
29
30 nativeCheckInputs = [
31 pytestCheckHook
32 httmock
33 ];
34
35 pythonImportsCheck = [ "freesms" ];
36
37 meta = {
38 description = "Python interface for Free Mobile SMS API";
39 homepage = "https://github.com/bfontaine/freesms";
40 changelog = "https://github.com/bfontaine/freesms/releases/tag/v${version}";
41 license = lib.licenses.mit;
42 maintainers = [ lib.maintainers.jamiemagee ];
43 };
44}