depot/third_party/nixpkgs/pkgs/development/python-modules/gocardless-pro/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

45 lines
948 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
requests,
six,
setuptools,
pytestCheckHook,
responses,
}:
buildPythonPackage rec {
pname = "gocardless-pro";
version = "2.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "gocardless";
repo = "gocardless-pro-python";
rev = "refs/tags/v${version}";
hash = "sha256-RHvGrBIDtjnLax2x7FPu0S5vizUW7dQMaQsyGPXqEh4=";
};
build-system = [ setuptools ];
propagatedBuildInputs = [
requests
six
];
pythonImportsCheck = [ "gocardless_pro" ];
nativeCheckInputs = [
pytestCheckHook
responses
];
meta = with lib; {
description = "Client library for the GoCardless Pro API";
homepage = "https://github.com/gocardless/gocardless-pro-python";
changelog = "https://github.com/gocardless/gocardless-pro-python/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ blaggacao ];
};
}