From 2c5ff5ea3f9b1d6e01da09c24fa388f8cd438e87 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Mon, 29 Oct 2018 10:50:40 -0400 Subject: [PATCH] pythonPackages.zope_testing: refactor move to python-modules --- .../python-modules/zope_testing/default.nix | 30 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 22 +------------- 2 files changed, 31 insertions(+), 21 deletions(-) create mode 100644 pkgs/development/python-modules/zope_testing/default.nix diff --git a/pkgs/development/python-modules/zope_testing/default.nix b/pkgs/development/python-modules/zope_testing/default.nix new file mode 100644 index 000000000000..4e28113a8a1a --- /dev/null +++ b/pkgs/development/python-modules/zope_testing/default.nix @@ -0,0 +1,30 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, isPyPy +, zope_interface +, zope_exceptions +, zope_location +}: + +buildPythonPackage rec { + pname = "zope.testing"; + version = "4.6.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "1vvxhjmzl7vw2i1akfj1xbggwn36270ym7f2ic9xwbaswfw1ap56"; + }; + + doCheck = !isPyPy; + + propagatedBuildInputs = [ zope_interface zope_exceptions zope_location ]; + + meta = with stdenv.lib; { + description = "Zope testing helpers"; + homepage = http://pypi.python.org/pypi/zope.testing; + license = licenses.zpl20; + maintainers = with maintainers; [ goibhniu ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f93072a80a9f..8909d575f6b8 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4214,27 +4214,7 @@ in { zope_size = callPackage ../development/python-modules/zope_size { }; - zope_testing = buildPythonPackage rec { - name = "zope.testing-${version}"; - version = "4.6.1"; - - src = pkgs.fetchurl { - url = "mirror://pypi/z/zope.testing/${name}.tar.gz"; - sha256 = "1vvxhjmzl7vw2i1akfj1xbggwn36270ym7f2ic9xwbaswfw1ap56"; - }; - - doCheck = !isPyPy; - - propagatedBuildInputs = with self; [ zope_interface zope_exceptions zope_location ]; - - meta = { - description = "Zope testing helpers"; - homepage = http://pypi.python.org/pypi/zope.testing; - license = licenses.zpl20; - maintainers = with maintainers; [ goibhniu ]; - }; - }; - + zope_testing = callPackage ../development/python-modules/zope_testing { }; zope_testrunner = callPackage ../development/python-modules/zope_testrunner { };