diff options
author | wisut hantanong <wizzup@gmail.com> | 2017-07-15 14:00:15 +0700 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2017-07-15 17:40:55 +0100 |
commit | 33bcafcf5b7192bffc751191ece6a9d11684987e (patch) | |
tree | 36a2c8802f2bfa1b29f5fc330d496093f0f83b03 /pkgs/development | |
parent | 4546623b37363475695999551f57961477e53009 (diff) |
python.pkgs.stripe: move to separate expression
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/stripe/default.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/stripe/default.nix b/pkgs/development/python-modules/stripe/default.nix new file mode 100644 index 0000000000000..5a1e114fb2595 --- /dev/null +++ b/pkgs/development/python-modules/stripe/default.nix @@ -0,0 +1,27 @@ +{ stdenv, buildPythonPackage, fetchPypi +, unittest2, mock, requests }: + +buildPythonPackage rec { + pname = "stripe"; + version = "1.41.1"; + name = "${pname}-${version}"; + + # Tests require network connectivity and there's no easy way to disable + # them. ~ C. + doCheck = false; + + src = fetchPypi { + inherit pname version; + sha256 = "0zvffvq933ia5w5ll6xhx2zgvppgc6zc2mxhc6f0kypw5g2fxvz5"; + }; + + buildInputs = [ unittest2 mock ]; + + propagatedBuildInputs = [ requests ]; + + meta = with stdenv.lib; { + description = "Stripe Python bindings"; + homepage = "https://github.com/stripe/stripe-python"; + license = licenses.mit; + }; +} |