From 89575266d3bd9992261def0529cbf886445c3b64 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Tue, 16 Oct 2018 11:38:27 -0400 Subject: [PATCH] pythonPackages.roman: refactor move to python-modules --- .../python-modules/roman/default.nix | 22 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 22 +------------------ 2 files changed, 23 insertions(+), 21 deletions(-) create mode 100644 pkgs/development/python-modules/roman/default.nix diff --git a/pkgs/development/python-modules/roman/default.nix b/pkgs/development/python-modules/roman/default.nix new file mode 100644 index 000000000000..52d45d728752 --- /dev/null +++ b/pkgs/development/python-modules/roman/default.nix @@ -0,0 +1,22 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + version = "2.0.0"; + pname = "roman"; + + src = fetchPypi { + inherit pname version; + extension = "zip"; + sha256 = "90e83b512b44dd7fc83d67eb45aa5eb707df623e6fc6e66e7f273abd4b2613ae"; + }; + + meta = with stdenv.lib; { + description = "Integer to Roman numerals converter"; + homepage = "https://pypi.python.org/pypi/roman"; + license = licenses.psfl; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d864a580b294..ec885bac3904 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2139,27 +2139,7 @@ in { rethinkdb = callPackage ../development/python-modules/rethinkdb { }; - roman = buildPythonPackage rec { - version = "2.0.0"; - name = "roman-${version}"; - - src = pkgs.fetchurl { - url = "mirror://pypi/r/roman/${name}.zip"; - sha256 = "90e83b512b44dd7fc83d67eb45aa5eb707df623e6fc6e66e7f273abd4b2613ae"; - }; - - buildInputs = with self; with pkgs; [ ]; - - propagatedBuildInputs = with self; [ ]; - - meta = { - description = "Integer to Roman numerals converter"; - homepage = "https://pypi.python.org/pypi/roman"; - license = licenses.psfl; - }; - }; - - + roman = callPackage ../development/python-modules/roman { }; librosa = buildPythonPackage rec { pname = "librosa";