about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/minidb/default.nix
blob: 599b1d70d42e3c0ae4af3084ff82f386e0bf9b2a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k
, nose
, pytest
}:

buildPythonPackage rec {
  pname = "minidb";
  version = "2.0.5";
  disabled = !isPy3k;

  src = fetchFromGitHub {
    owner = "thp";
    repo = "minidb";
    rev = version;
    sha256 = "sha256-aUXsp0E89OxCgTaz7MpKmqTHZfnjDcyHa8Ckzof9rfg=";
  };

  # 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 ];
  };

}