From 7735348d77a004e752bb26100117d5c4920f31d0 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 25 Apr 2017 12:41:28 +0200 Subject: [PATCH] pythonPackages.vcrpy: init at 1.10.5 --- .../python-modules/vcrpy/default.nix | 28 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 8 ++++-- 2 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 pkgs/development/python-modules/vcrpy/default.nix diff --git a/pkgs/development/python-modules/vcrpy/default.nix b/pkgs/development/python-modules/vcrpy/default.nix new file mode 100644 index 000000000000..a5a17cb7dd93 --- /dev/null +++ b/pkgs/development/python-modules/vcrpy/default.nix @@ -0,0 +1,28 @@ +{ lib, pkgs, pythonPackages }: + +pythonPackages.buildPythonPackage rec { + version = "1.10.5"; + name = "vcrpy-${version}"; + + src = pkgs.fetchurl { + url = "mirror://pypi/v/vcrpy/vcrpy-${version}.tar.gz"; + sha256 = "12kncg6jyvj15mi8ca74514f2x1ih753nhyz769nwvh39r468167"; + }; + + buildInputs = with pythonPackages; [ + pyyaml + mock + contextlib2 + wrapt + pytest_27 + httpbin + pytest-httpbin + ]; + + meta = with lib; { + description = "Automatically mock your HTTP interactions to simplify and speed up testing"; + homepage = https://github.com/kevin1024/vcrpy; + license = licenses.mit; + }; +} + diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c9a3da94894b..f09dd8a67bf1 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10231,6 +10231,8 @@ in { }; }; + vcrpy = callPackage ../development/python-modules/vcrpy { }; + venusian = buildPythonPackage rec { name = "venusian-1.0"; @@ -13200,9 +13202,9 @@ in { license = with licenses; [ lgpl21 ]; }; }; - + iso-639 = callPackage ../development/python-modules/iso-639 {}; - + iso3166 = callPackage ../development/python-modules/iso3166 {}; iso8601 = buildPythonPackage rec { @@ -15612,7 +15614,7 @@ in { patches = [ (pkgs.fetchpatch { - url = https://github.com/drkjam/netaddr/commit/2ab73f10be7069c9412e853d2d0caf29bd624012.patch; + url = https://github.com/drkjam/netaddr/commit/2ab73f10be7069c9412e853d2d0caf29bd624012.patch; sha256 = "08rn1s3w9424jhandy4j9sksy852ny00088zh15nirw5ajqg1dn7"; }) ];