1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 requests,
6 six,
7 pytestCheckHook,
8 responses,
9 nose,
10}:
11
12buildPythonPackage rec {
13 pname = "gocardless-pro";
14 version = "1.51.0";
15 format = "setuptools";
16
17 src = fetchFromGitHub {
18 owner = "gocardless";
19 repo = "gocardless-pro-python";
20 rev = "refs/tags/v${version}";
21 hash = "sha256-4pyVcyEa8iex7ngTibxWYu4HeW+6V5OASkxqjHIOe2Y=";
22 };
23
24 propagatedBuildInputs = [
25 requests
26 six
27 ];
28
29 pythonImportsCheck = [ "gocardless_pro" ];
30
31 nativeCheckInputs = [
32 pytestCheckHook
33 responses
34 nose
35 ];
36
37 meta = with lib; {
38 description = "A client library for the GoCardless Pro API";
39 homepage = "https://github.com/gocardless/gocardless-pro-python";
40 changelog = "https://github.com/gocardless/gocardless-pro-python/blob/${src.rev}/CHANGELOG.md";
41 license = licenses.mit;
42 maintainers = with maintainers; [ blaggacao ];
43 };
44}