2020-04-24 23:36:52 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k
|
|
|
|
, nose
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "minidb";
|
2021-07-14 22:03:04 +00:00
|
|
|
version = "2.0.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "thp";
|
|
|
|
repo = "minidb";
|
|
|
|
rev = version;
|
2021-07-14 22:03:04 +00:00
|
|
|
sha256 = "sha256-aUXsp0E89OxCgTaz7MpKmqTHZfnjDcyHa8Ckzof9rfg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# 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 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|