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