depot/third_party/nixpkgs/pkgs/development/python-modules/minidb/default.nix
Default email 4fc29cb41f Project import generated by Copybara.
GitOrigin-RevId: 135073a87b7e2c631739f4ffa016e1859b1a425e
2020-05-29 08:06:01 +02:00

32 lines
668 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub, isPy3k
, nose
, pytest
}:
buildPythonPackage rec {
pname = "minidb";
version = "2.0.4";
disabled = !isPy3k;
src = fetchFromGitHub {
owner = "thp";
repo = "minidb";
rev = version;
sha256 = "0i607rkfx0rkyllcx4vf3w2z0wxzs1gqigfw87q90pjrbbh2q4sb";
};
# 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 ];
};
}