From 749bc3872507fc0e5fe6508b8bc1ca94147933b0 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Fri, 26 Oct 2018 13:29:13 -0400 Subject: [PATCH] pythonPackages.sqlite3dbm: refactor move to python-modules --- .../python-modules/sqlite3dbm/default.nix | 23 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 16 +------------ 2 files changed, 24 insertions(+), 15 deletions(-) create mode 100644 pkgs/development/python-modules/sqlite3dbm/default.nix diff --git a/pkgs/development/python-modules/sqlite3dbm/default.nix b/pkgs/development/python-modules/sqlite3dbm/default.nix new file mode 100644 index 000000000000..bc49c0e426ba --- /dev/null +++ b/pkgs/development/python-modules/sqlite3dbm/default.nix @@ -0,0 +1,23 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, isPy3k +}: + +buildPythonPackage rec { + pname = "sqlite3dbm"; + version = "0.1.4"; + disabled = isPy3k; + + src = fetchPypi { + inherit pname version; + sha256 = "4721607e0b817b89efdba7e79cab881a03164b94777f4cf796ad5dd59a7612c5"; + }; + + meta = with stdenv.lib; { + description = "sqlite-backed dictionary"; + homepage = https://github.com/Yelp/sqlite3dbm; + license = licenses.asl20; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 00ce293887d0..7cd18da98b74 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3740,21 +3740,7 @@ in { sphfile = callPackage ../development/python-modules/sphfile { }; - sqlite3dbm = buildPythonPackage rec { - name = "sqlite3dbm-0.1.4"; - disabled = isPy3k; - - src = pkgs.fetchurl { - url = "mirror://pypi/s/sqlite3dbm/${name}.tar.gz"; - sha256 = "4721607e0b817b89efdba7e79cab881a03164b94777f4cf796ad5dd59a7612c5"; - }; - - meta = { - description = "sqlite-backed dictionary"; - homepage = https://github.com/Yelp/sqlite3dbm; - license = licenses.asl20; - }; - }; + sqlite3dbm = callPackage ../development/python-modules/sqlite3dbm { }; sqlobject = buildPythonPackage rec { pname = "SQLObject";