From ab96dd445e5537ea1830754b8f5cc470395aeab9 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Mon, 29 Oct 2018 12:44:30 -0400 Subject: [PATCH] pythonPackages.blist: refactor move to python-modules --- .../python-modules/blist/default.nix | 23 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 11 +-------- 2 files changed, 24 insertions(+), 10 deletions(-) create mode 100644 pkgs/development/python-modules/blist/default.nix diff --git a/pkgs/development/python-modules/blist/default.nix b/pkgs/development/python-modules/blist/default.nix new file mode 100644 index 000000000000..d6d55accaca7 --- /dev/null +++ b/pkgs/development/python-modules/blist/default.nix @@ -0,0 +1,23 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, isPyPy +}: + +buildPythonPackage rec { + pname = "blist"; + version = "1.3.6"; + disabled = isPyPy; + + src = fetchPypi { + inherit pname version; + sha256 = "1hqz9pqbwx0czvq9bjdqjqh5bwfksva1is0anfazig81n18c84is"; + }; + + meta = with stdenv.lib; { + homepage = http://stutzbachenterprises.com/blist/; + description = "A list-like type with better asymptotic performance and similar performance on small lists"; + license = licenses.bsd0; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c3127a1b164d..8fdd339903ad 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4365,16 +4365,7 @@ in { WSGIProxy = callPackage ../development/python-modules/wsgiproxy { }; - blist = buildPythonPackage rec { - name = "blist-${version}"; - version = "1.3.6"; - disabled = isPyPy; - - src = pkgs.fetchurl { - url = "mirror://pypi/b/blist/blist-${version}.tar.gz"; - sha256 = "1hqz9pqbwx0czvq9bjdqjqh5bwfksva1is0anfazig81n18c84is"; - }; - }; + blist = callPackage ../development/python-modules/blist { }; canonicaljson = callPackage ../development/python-modules/canonicaljson { };