From 2c30da5ec186a135b89aef9aa9a4f566cd10de97 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Tue, 16 Oct 2018 18:25:46 -0400 Subject: [PATCH] pythonPackages.mpmath: refactor move to python-modules --- .../python-modules/mpmath/default.nix | 26 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 21 +-------------- 2 files changed, 27 insertions(+), 20 deletions(-) create mode 100644 pkgs/development/python-modules/mpmath/default.nix diff --git a/pkgs/development/python-modules/mpmath/default.nix b/pkgs/development/python-modules/mpmath/default.nix new file mode 100644 index 000000000000..50e68352e782 --- /dev/null +++ b/pkgs/development/python-modules/mpmath/default.nix @@ -0,0 +1,26 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + pname = "mpmath"; + version = "0.19"; + + src = fetchPypi { + inherit pname version; + sha256 = "08ijsr4ifrqv3cjc26mkw0dbvyygsa99in376hr4b96ddm1gdpb8"; + }; + + # error: invalid command 'test' + doCheck = false; + + meta = with stdenv.lib; { + homepage = http://mpmath.googlecode.com; + description = "A pure-Python library for multiprecision floating arithmetic"; + license = licenses.bsd3; + maintainers = with maintainers; [ lovek323 ]; + platforms = platforms.unix; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index aad7c88f2e40..d967f79bb0da 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2822,26 +2822,7 @@ in { mozsvc = callPackage ../development/python-modules/mozsvc { }; - mpmath = buildPythonPackage rec { - name = "mpmath-0.19"; - - src = pkgs.fetchurl { - url = "mirror://pypi/m/mpmath/${name}.tar.gz"; - sha256 = "08ijsr4ifrqv3cjc26mkw0dbvyygsa99in376hr4b96ddm1gdpb8"; - }; - - meta = { - homepage = http://mpmath.googlecode.com; - description = "A pure-Python library for multiprecision floating arithmetic"; - license = licenses.bsd3; - maintainers = with maintainers; [ lovek323 ]; - platforms = platforms.unix; - }; - - # error: invalid command 'test' - doCheck = false; - }; - + mpmath = callPackage ../development/python-modules/mpmath { }; mpd = buildPythonPackage rec { name = "python-mpd-0.3.0";