From af19743739fe25c259a91ccd694e08dc7743bc99 Mon Sep 17 00:00:00 2001 From: "Farkas, Arnold" Date: Mon, 27 Jan 2020 04:19:42 -0500 Subject: [PATCH] pythonPackages.sqlitedict: init at 1.6.0 --- .../python-modules/sqlitedict/default.nix | 26 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/development/python-modules/sqlitedict/default.nix diff --git a/pkgs/development/python-modules/sqlitedict/default.nix b/pkgs/development/python-modules/sqlitedict/default.nix new file mode 100644 index 000000000000..5037aa2c3681 --- /dev/null +++ b/pkgs/development/python-modules/sqlitedict/default.nix @@ -0,0 +1,26 @@ +{ lib, buildPythonPackage, fetchFromGitHub, pytest }: + +buildPythonPackage rec { + pname = "sqlitedict"; + version = "1.6.0"; + + src = fetchFromGitHub { + owner = "RaRe-Technologies"; + repo = "sqlitedict"; + rev = version; + sha256 = "1yq94lgpny9qcfbsl39npjvrsjfggi3lj2kpzcsxcfdfgxag6m2m"; + }; + + checkInputs = [ pytest ]; + + checkPhase = '' + pytest tests + ''; + + meta = with lib; { + description = "Persistent, thread-safe dict"; + homepage = "https://github.com/RaRe-Technologies/sqlitedict"; + license = licenses.asl20; + maintainers = [ maintainers.arnoldfarkas ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ed7a00d5e816..9731cab24b26 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5878,6 +5878,8 @@ in { sqlite3dbm = callPackage ../development/python-modules/sqlite3dbm { }; + sqlitedict = callPackage ../development/python-modules/sqlitedict { }; + sqlobject = callPackage ../development/python-modules/sqlobject { }; sqlmap = callPackage ../development/python-modules/sqlmap { };