diff options
author | Robert Schütz <robert.schuetz@stud.uni-heidelberg.de> | 2018-02-27 00:41:49 +0100 |
---|---|---|
committer | Robert Schütz <robert.schuetz@stud.uni-heidelberg.de> | 2018-02-27 00:44:49 +0100 |
commit | 31a94650e2a3be50fce643436c8252e7ee396b90 (patch) | |
tree | d45e07e297ffefe54e90387d1e4d1c634d479167 /pkgs/development | |
parent | d6e25bfc3b34c0b4a7b7874e7cabe78e6447ede7 (diff) | |
download | nixlib-31a94650e2a3be50fce643436c8252e7ee396b90.tar nixlib-31a94650e2a3be50fce643436c8252e7ee396b90.tar.gz nixlib-31a94650e2a3be50fce643436c8252e7ee396b90.tar.bz2 nixlib-31a94650e2a3be50fce643436c8252e7ee396b90.tar.lz nixlib-31a94650e2a3be50fce643436c8252e7ee396b90.tar.xz nixlib-31a94650e2a3be50fce643436c8252e7ee396b90.tar.zst nixlib-31a94650e2a3be50fce643436c8252e7ee396b90.zip |
pythonPackages.stripe: add simplejson dependency for python 2
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/stripe/default.nix | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/stripe/default.nix b/pkgs/development/python-modules/stripe/default.nix index 1bfcb8eb0023..9a3ed36d893c 100644 --- a/pkgs/development/python-modules/stripe/default.nix +++ b/pkgs/development/python-modules/stripe/default.nix @@ -1,10 +1,9 @@ -{ stdenv, buildPythonPackage, fetchPypi -, unittest2, mock, requests }: +{ lib, buildPythonPackage, fetchPypi, isPy3k +, unittest2, mock, requests, simplejson }: buildPythonPackage rec { pname = "stripe"; version = "1.79.0"; - name = "${pname}-${version}"; # Tests require network connectivity and there's no easy way to disable # them. ~ C. @@ -15,11 +14,11 @@ buildPythonPackage rec { sha256 = "490bb7bfc7d224e483d643171fd860f8a1670e31fd9cef8cb8d9a7c19806d450"; }; - buildInputs = [ unittest2 mock ]; + checkInputs = [ unittest2 mock ]; - propagatedBuildInputs = [ requests ]; + propagatedBuildInputs = [ requests ] ++ lib.optional (!isPy3k) simplejson; - meta = with stdenv.lib; { + meta = with lib; { description = "Stripe Python bindings"; homepage = https://github.com/stripe/stripe-python; license = licenses.mit; |