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