6 , django-phonenumber-field
17 buildPythonPackage rec {
18 pname = "django-payments";
20 format = "setuptools";
22 disabled = pythonOlder "3.7";
24 src = fetchFromGitHub {
26 repo = "django-payments";
27 rev = "refs/tags/v${version}";
28 hash = "sha256-6WPV08CV+rko/tRnsT5GyTGYaJbiIKTvpisfRwizBIo=";
32 substituteInPlace setup.py \
33 --replace "django-phonenumber-field[phonenumberslite]" "django-phonenumber-field"
40 propagatedBuildInputs = [
42 django-phonenumber-field
44 ] ++ django-phonenumber-field.optional-dependencies.phonenumbers;
46 # require internet connection
49 pythonImportsCheck = [
53 passthru.optional-dependencies = {
54 all = [ braintree /* suds-community */ mercadopago cryptography xmltodict stripe ];
55 braintree = [ braintree ];
56 cybersource = [ /* suds-community */ ];
57 docs = [ sphinx-rtd-theme ];
58 mercadopago = [ mercadopago ];
59 sagepay = [ cryptography ];
60 sofort = [ xmltodict ];
65 description = "Universal payment handling for Django.";
66 homepage = "https://github.com/jazzband/django-payments/";
67 changelog = "https://github.com/jazzband/django-payments/releases/tag/v${version}";
68 license = licenses.bsd3;
69 maintainers = with maintainers; [ derdennisop ];