Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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 = "1.52.0"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "gocardless"; 19 repo = "gocardless-pro-python"; 20 rev = "refs/tags/v${version}"; 21 hash = "sha256-Oi68s4x/rS8ahvJ9TsniYfDidCxtvcvsMwYhJirYlP0="; 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 = with lib; { 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.rev}/CHANGELOG.md"; 42 license = licenses.mit; 43 maintainers = with maintainers; [ blaggacao ]; 44 }; 45}