From 111b4b859f3f71e18e37147b4324320afdea3e29 Mon Sep 17 00:00:00 2001 From: Elis Hirwing Date: Sat, 31 Mar 2018 12:52:47 +0200 Subject: [PATCH] pythonPackages.responses: Move to own file --- .../python-modules/responses/default.nix | 16 ++++++++++++++++ pkgs/top-level/python-packages.nix | 14 +------------- 2 files changed, 17 insertions(+), 13 deletions(-) create mode 100644 pkgs/development/python-modules/responses/default.nix diff --git a/pkgs/development/python-modules/responses/default.nix b/pkgs/development/python-modules/responses/default.nix new file mode 100644 index 000000000000..193c116fe55a --- /dev/null +++ b/pkgs/development/python-modules/responses/default.nix @@ -0,0 +1,16 @@ +{ stdenv, buildPythonPackage, fetchPypi +, cookies, mock, requests, six }: + +buildPythonPackage rec { + pname = "responses"; + version = "0.4.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "0fs7a4cf4f12mjhcjd5vfh0f3ixcy2nawzxpgsfr3ahf0rg7ppx5"; + }; + + propagatedBuildInputs = [ cookies mock requests six ]; + + doCheck = false; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index eea999ca3e13..742ea0300dac 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1226,19 +1226,7 @@ in { iowait = callPackage ../development/python-modules/iowait {}; - responses = self.buildPythonPackage rec { - name = "responses-0.4.0"; - - src = pkgs.fetchurl { - url = "mirror://pypi/r/responses/${name}.tar.gz"; - sha256 = "0fs7a4cf4f12mjhcjd5vfh0f3ixcy2nawzxpgsfr3ahf0rg7ppx5"; - }; - - propagatedBuildInputs = with self; [ cookies mock requests six ]; - - doCheck = false; - - }; + responses = callPackage ../development/python-modules/responses {}; rarfile = callPackage ../development/python-modules/rarfile { inherit (pkgs) libarchive; };