From 88298b6b676084fa826119c7aa8fa2b59d8e3946 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Mon, 29 Oct 2018 10:02:50 -0400 Subject: [PATCH] pythonPackages.zope_component: refactor move to python-modules --- .../python-modules/zope_component/default.nix | 32 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 22 +------------ 2 files changed, 33 insertions(+), 21 deletions(-) create mode 100644 pkgs/development/python-modules/zope_component/default.nix diff --git a/pkgs/development/python-modules/zope_component/default.nix b/pkgs/development/python-modules/zope_component/default.nix new file mode 100644 index 000000000000..8b51253fe929 --- /dev/null +++ b/pkgs/development/python-modules/zope_component/default.nix @@ -0,0 +1,32 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, zope_configuration +, zope_event +, zope_i18nmessageid +, zope_interface +, zope_testing +}: + +buildPythonPackage rec { + pname = "zope.component"; + version = "4.2.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "1gzbr0j6c2h0cqnpi2cjss38wrz1bcwx8xahl3vykgz5laid15l6"; + }; + + propagatedBuildInputs = [ zope_configuration zope_event zope_i18nmessageid zope_interface zope_testing ]; + + # ignore tests because of a circular dependency on zope_security + doCheck = false; + + meta = with stdenv.lib; { + homepage = https://github.com/zopefoundation/zope.component; + description = "Zope Component Architecture"; + license = licenses.zpl20; + maintainers = with maintainers; [ goibhniu ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 3234124cc598..c4149aa844cb 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4186,27 +4186,7 @@ in { zope_broken = callPackage ../development/python-modules/zope_broken { }; - zope_component = buildPythonPackage rec { - name = "zope.component-4.2.1"; - - src = pkgs.fetchurl { - url = "mirror://pypi/z/zope.component/zope.component-4.2.1.tar.gz"; - sha256 = "1gzbr0j6c2h0cqnpi2cjss38wrz1bcwx8xahl3vykgz5laid15l6"; - }; - - propagatedBuildInputs = with self; [ - zope_configuration zope_event zope_i18nmessageid zope_interface - zope_testing - ]; - - # ignore tests because of a circular dependency on zope_security - doCheck = false; - - meta = { - maintainers = with maintainers; [ goibhniu ]; - }; - }; - + zope_component = callPackage ../development/python-modules/zope_component { }; zope_configuration = buildPythonPackage rec { name = "zope.configuration-4.0.3";