Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 32 lines 668 B view raw
1{ lib, buildPythonPackage, fetchFromGitHub, isPy3k 2, nose 3, pytest 4}: 5 6buildPythonPackage rec { 7 pname = "minidb"; 8 version = "2.0.4"; 9 disabled = !isPy3k; 10 11 src = fetchFromGitHub { 12 owner = "thp"; 13 repo = "minidb"; 14 rev = version; 15 sha256 = "0i607rkfx0rkyllcx4vf3w2z0wxzs1gqigfw87q90pjrbbh2q4sb"; 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}