2019-09-14 21:09:56 +02:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k
|
2018-10-15 20:43:03 +02:00
|
|
|
, nose
|
2019-09-14 21:09:56 +02:00
|
|
|
, pytest
|
2018-10-15 20:43:03 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "minidb";
|
2021-07-08 19:00:46 +02:00
|
|
|
version = "2.0.5";
|
2019-10-07 17:20:23 +02:00
|
|
|
disabled = !isPy3k;
|
2018-10-15 20:43:03 +02:00
|
|
|
|
2019-09-14 21:09:56 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "thp";
|
|
|
|
repo = "minidb";
|
|
|
|
rev = version;
|
2021-07-08 19:00:46 +02:00
|
|
|
sha256 = "sha256-aUXsp0E89OxCgTaz7MpKmqTHZfnjDcyHa8Ckzof9rfg=";
|
2018-10-15 20:43:03 +02:00
|
|
|
};
|
|
|
|
|
2019-09-14 21:09:56 +02:00
|
|
|
# module imports are incompatible with python2
|
|
|
|
doCheck = isPy3k;
|
|
|
|
checkInputs = [ nose pytest ];
|
2018-10-15 20:43:03 +02:00
|
|
|
checkPhase = ''
|
2019-09-14 21:09:56 +02:00
|
|
|
pytest
|
2018-10-15 20:43:03 +02:00
|
|
|
'';
|
|
|
|
|
2019-09-14 21:09:56 +02:00
|
|
|
meta = with lib; {
|
2018-10-15 20:43:03 +02:00
|
|
|
description = "A simple SQLite3-based store for Python objects";
|
2019-09-14 21:09:56 +02:00
|
|
|
homepage = "https://thp.io/2010/minidb/";
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = [ maintainers.tv ];
|
2018-10-15 20:43:03 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|