5aa4b19946
Refs: e6754980264fe927320d5ff2dbd24ca4fac9a160 1e9cc5b9844ef603fe160e9f671178f96200774f 793a2fe1e8bb886ca2096c5904e1193dc3268b6d c19cf65261639f749012454932a532aa7c681e4b f6544d618f30fae0bc4798c4387a8c7c9c047a7c
33 lines
668 B
Nix
33 lines
668 B
Nix
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k
|
|
, nose
|
|
, pytest
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "minidb";
|
|
version = "2.0.2";
|
|
disabled = !isPy3k;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "thp";
|
|
repo = "minidb";
|
|
rev = version;
|
|
sha256 = "14y5vf8vhgviczhzy9h3xv99fjvrg975nz4w1fj5c1jv37da1lq3";
|
|
};
|
|
|
|
# module imports are incompatible with python2
|
|
doCheck = isPy3k;
|
|
checkInputs = [ nose pytest ];
|
|
checkPhase = ''
|
|
pytest
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A simple SQLite3-based store for Python objects";
|
|
homepage = "https://thp.io/2010/minidb/";
|
|
license = licenses.isc;
|
|
maintainers = [ maintainers.tv ];
|
|
};
|
|
|
|
}
|