From 1c0b595b059b2e4383665fa1732db2cf2eb616d6 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Mon, 29 Oct 2018 12:18:37 -0400 Subject: [PATCH] pythonPackages.rpdb: refactor move to python-modules --- .../python-modules/rpdb/default.nix | 21 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 16 +------------- 2 files changed, 22 insertions(+), 15 deletions(-) create mode 100644 pkgs/development/python-modules/rpdb/default.nix diff --git a/pkgs/development/python-modules/rpdb/default.nix b/pkgs/development/python-modules/rpdb/default.nix new file mode 100644 index 00000000000..182709b525a --- /dev/null +++ b/pkgs/development/python-modules/rpdb/default.nix @@ -0,0 +1,21 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + pname = "rpdb"; + version = "0.1.5"; + + src = fetchPypi { + inherit pname version; + sha256 = "0rql1hq3lziwcql0h3dy05w074cn866p397ng9bv6qbz85ifw1bk"; + }; + + meta = with stdenv.lib; { + description = "pdb wrapper with remote access via tcp socket"; + homepage = https://github.com/tamentis/rpdb; + license = licenses.bsd2; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e41b893ef0b..ad57900d31f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4328,21 +4328,7 @@ in { inherit (pkgs) libvirt; }; - rpdb = buildPythonPackage rec { - name = "rpdb-0.1.5"; - - src = pkgs.fetchurl { - url = "mirror://pypi/r/rpdb/${name}.tar.gz"; - sha256 = "0rql1hq3lziwcql0h3dy05w074cn866p397ng9bv6qbz85ifw1bk"; - }; - - meta = { - description = "pdb wrapper with remote access via tcp socket"; - homepage = https://github.com/tamentis/rpdb; - license = licenses.bsd2; - }; - }; - + rpdb = callPackage ../development/python-modules/rpdb { }; grequests = buildPythonPackage rec { pname = "grequests";