From 3a9d15d951a2a0bef2d53b069d1e027089c4ffef Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Sun, 28 Oct 2018 11:52:36 -0400 Subject: [PATCH] pythonPackages.eggdeps: refactor move to python-modules --- .../python-modules/eggdeps/default.nix | 28 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 20 +------------ 2 files changed, 29 insertions(+), 19 deletions(-) create mode 100644 pkgs/development/python-modules/eggdeps/default.nix diff --git a/pkgs/development/python-modules/eggdeps/default.nix b/pkgs/development/python-modules/eggdeps/default.nix new file mode 100644 index 000000000000..0622bd41d237 --- /dev/null +++ b/pkgs/development/python-modules/eggdeps/default.nix @@ -0,0 +1,28 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, zope_interface +, zope_testing +}: + +buildPythonPackage rec { + pname = "eggdeps"; + version = "0.4"; + + src = fetchPypi { + inherit pname version; + sha256 = "a99de5e4652865224daab09b2e2574a4f7c1d0d9a267048f9836aa914a2caf3a"; + }; + + propagatedBuildInputs = [ zope_interface zope_testing ]; + + # tests fail, see http://hydra.nixos.org/build/4316603/log/raw + doCheck = false; + + meta = with stdenv.lib; { + description = "A tool which computes a dependency graph between active Python eggs"; + homepage = http://thomas-lotze.de/en/software/eggdeps/; + license = licenses.zpl20; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 348d073ed365..71bb5a31889a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4001,25 +4001,7 @@ in { transmissionrpc = callPackage ../development/python-modules/transmissionrpc { }; - eggdeps = buildPythonPackage rec { - name = "eggdeps-${version}"; - version = "0.4"; - - src = pkgs.fetchurl { - url = "mirror://pypi/t/tl.eggdeps/tl.${name}.tar.gz"; - sha256 = "a99de5e4652865224daab09b2e2574a4f7c1d0d9a267048f9836aa914a2caf3a"; - }; - - # tests fail, see http://hydra.nixos.org/build/4316603/log/raw - doCheck = false; - - propagatedBuildInputs = with self; [ zope_interface zope_testing ]; - meta = { - description = "A tool which computes a dependency graph between active Python eggs"; - homepage = http://thomas-lotze.de/en/software/eggdeps/; - license = licenses.zpl20; - }; - }; + eggdeps = callPackage ../development/python-modules/eggdeps { }; TurboCheetah = callPackage ../development/python-modules/TurboCheetah { };