nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 requests,
6 six,
7 setuptools,
8 pytestCheckHook,
9 responses,
10}:
11
12buildPythonPackage rec {
13 pname = "gocardless-pro";
14 version = "3.3.0";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "gocardless";
19 repo = "gocardless-pro-python";
20 tag = "v${version}";
21 hash = "sha256-XD5GUiSHTq/DLrKo6FY4moNnbFpXkVJWM13Yu6c+tZw=";
22 };
23
24 build-system = [ setuptools ];
25
26 propagatedBuildInputs = [
27 requests
28 six
29 ];
30
31 pythonImportsCheck = [ "gocardless_pro" ];
32
33 nativeCheckInputs = [
34 pytestCheckHook
35 responses
36 ];
37
38 meta = {
39 description = "Client library for the GoCardless Pro API";
40 homepage = "https://github.com/gocardless/gocardless-pro-python";
41 changelog = "https://github.com/gocardless/gocardless-pro-python/blob/${src.tag}/CHANGELOG.md";
42 license = lib.licenses.mit;
43 maintainers = [ ];
44 };
45}