From da5c9085932061a78ef24a696c3a3449976a8c33 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Fri, 26 Oct 2018 13:12:38 -0400 Subject: [PATCH] pythonPackages.scripttest: refactor move to python-modules --- .../python-modules/scripttest/default.nix | 27 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 20 +------------- 2 files changed, 28 insertions(+), 19 deletions(-) create mode 100644 pkgs/development/python-modules/scripttest/default.nix diff --git a/pkgs/development/python-modules/scripttest/default.nix b/pkgs/development/python-modules/scripttest/default.nix new file mode 100644 index 000000000000..2ae7a4c8e361 --- /dev/null +++ b/pkgs/development/python-modules/scripttest/default.nix @@ -0,0 +1,27 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, pytest +}: + +buildPythonPackage rec { + version = "1.3"; + pname = "scripttest"; + + src = fetchPypi { + inherit pname version; + sha256 = "951cfc25219b0cd003493a565f2e621fd791beaae9f9a3bdd7024d8626419c38"; + }; + + buildInputs = [ pytest ]; + + # Tests are not included. See https://github.com/pypa/scripttest/issues/11 + doCheck = false; + + meta = with stdenv.lib; { + description = "A library for testing interactive command-line applications"; + homepage = https://pypi.python.org/pypi/ScriptTest/; + license = licenses.mit; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 72bce231057c..bdaec829cfc5 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3698,25 +3698,7 @@ in { scp = callPackage ../development/python-modules/scp {}; - scripttest = buildPythonPackage rec { - version = "1.3"; - name = "scripttest-${version}"; - - src = pkgs.fetchurl { - url = "mirror://pypi/s/scripttest/scripttest-${version}.tar.gz"; - sha256 = "951cfc25219b0cd003493a565f2e621fd791beaae9f9a3bdd7024d8626419c38"; - }; - - buildInputs = with self; [ pytest ]; - - # Tests are not included. See https://github.com/pypa/scripttest/issues/11 - doCheck = false; - - meta = { - description = "A library for testing interactive command-line applications"; - homepage = https://pypi.python.org/pypi/ScriptTest/; - }; - }; + scripttest = callPackage ../development/python-modules/scripttest { }; seaborn = callPackage ../development/python-modules/seaborn { };