1{ lib, buildPythonPackage, fetchFromGitHub, isPy3k 2, nose 3, pytest 4}: 5 6buildPythonPackage rec { 7 pname = "minidb"; 8 version = "2.0.5"; 9 disabled = !isPy3k; 10 11 src = fetchFromGitHub { 12 owner = "thp"; 13 repo = "minidb"; 14 rev = version; 15 sha256 = "sha256-aUXsp0E89OxCgTaz7MpKmqTHZfnjDcyHa8Ckzof9rfg="; 16 }; 17 18 # module imports are incompatible with python2 19 doCheck = isPy3k; 20 checkInputs = [ nose pytest ]; 21 checkPhase = '' 22 pytest 23 ''; 24 25 meta = with lib; { 26 description = "A simple SQLite3-based store for Python objects"; 27 homepage = "https://thp.io/2010/minidb/"; 28 license = licenses.isc; 29 maintainers = [ maintainers.tv ]; 30 }; 31 32}